chore: idk something #113
This file contains hidden or 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 bun.lockb | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| update-bun-lockb: | |
| name: "Update bun.lockb" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v1 | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies with Bun | |
| run: bun install | |
| - name: Check for changes | |
| id: git_status | |
| run: | | |
| git add bun.lockb | |
| if [ -z "$(git status --porcelain)" ]; then | |
| echo "No changes to bun.lockb" | |
| echo "::set-output name=changes_detected::false" | |
| else | |
| echo "Changes detected to bun.lockb" | |
| echo "::set-output name=changes_detected::true" | |
| fi | |
| - name: Commit and push changes to bun.lockb | |
| if: steps.git_status.outputs.changes_detected == 'true' | |
| run: | | |
| git config --global user.name 'github-actions[bot]' | |
| git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
| git commit -m "Update bun.lockb (via GitHub Actions)" | |
| git pull --rebase origin main | |
| git push |