Update Output #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Output | |
on: workflow_dispatch | |
permissions: | |
contents: read | |
pull-requests: write | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Use Bun | |
uses: oven-sh/setup-bun@v2 | |
- name: Install dependencies | |
run: bun install --frozen-lockfile | |
working-directory: ./getversions | |
- name: Run tool | |
run: bun run main.ts | |
working-directory: ./getversions | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Commit files | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git add getversions/output.json | |
git commit -m "Update output" | |
- name: Push changes | |
run: git push |