Skip to content

Update Output

Update Output #6

Workflow file for this run

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