bitburner-src/.github/workflows/fetch-changes.yml

45 lines
1.5 KiB
YAML
Raw Permalink Normal View History

name: Fetch Merged Changes
on:
workflow_dispatch:
inputs:
fromCommit:
2022-04-07 01:30:08 +02:00
description: "From Commit SHA (full-length)"
required: true
toCommit:
2022-04-07 01:30:08 +02:00
description: "To Commit SHA (full-length, if omitted will use latest)"
jobs:
fetchChangelog:
runs-on: ubuntu-latest
steps:
2024-08-15 22:08:21 +02:00
- uses: actions/checkout@v4
- name: Use Node 20
uses: actions/setup-node@v4
with:
2024-08-15 22:08:21 +02:00
node-version: 20
2022-04-07 01:30:08 +02:00
cache: "npm"
- name: Install NPM dependencies
working-directory: ./tools/fetch-changelog
run: npm ci
- name: Fetch Changes from GitHub API
working-directory: ./tools/fetch-changelog
env:
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
node index.js \
--from=${{ github.event.inputs.fromCommit }} \
--to=${{ github.event.inputs.toCommit }} > changes.md
echo
echo "============================================================"
echo
cat changes.md
echo
echo "============================================================"
echo
echo "You may want to go to https://gist.github.com/ to upload the final changelog"
echo "The next step will require an url because we can't easily pass multiline strings to actions"
2024-08-15 22:08:21 +02:00
- uses: actions/upload-artifact@v4
with:
name: bitburner_changelog___DRAFT.md
path: ./tools/fetch-changelog/changes.md