Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
snutij committed Jan 25, 2024
1 parent b55f825 commit 926be19
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,29 @@ jobs:
- name: Lint
run: yarn run lint

- name: Create CHANGELOG.md
uses: actions/github-script@v6
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
script: |
const fs = require("fs");
const { data: releases } = await github.rest.repos.listReleases({
owner: "Shopify",
repo: "vscode-ruby-lsp",
});
console.log({context: context});
const changelog = releases
.filter((release) => github.event.release.prerelease || !release.prerelease)
.map((release) => `# ${release.tag_name}\n${release.body}\n`)
.join("\n");
fs.writeFileSync("CHANGELOG.md", changelog);
- run: cat CHANGELOG.md

build:
strategy:
fail-fast: false
Expand Down

0 comments on commit 926be19

Please sign in to comment.