Skip to content

Commit

Permalink
Test update output
Browse files Browse the repository at this point in the history
  • Loading branch information
lil5 committed Dec 18, 2024
1 parent c68a65a commit bfb879c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/update-output.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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 --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add getversions/output.json
git commit -m "Update output"
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: ${{ github.head_ref }}

0 comments on commit bfb879c

Please sign in to comment.