-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/npm_and_yarn/development-df30bac025
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Update Lockfile | ||
on: pull_request | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
dependabot: | ||
runs-on: ubuntu-latest | ||
if: github.actor == 'dependabot[bot]' | ||
steps: | ||
- name: Generate GitHub App Token | ||
id: generate_token | ||
uses: tibdex/github-app-token@v1 | ||
with: | ||
app_id: ${{ secrets.ORG_GH_RONIN_APP_ID }} | ||
private_key: ${{ secrets.ORG_GH_RONIN_APP_PRIVATE_KEY }} | ||
|
||
- name: Code Checkout | ||
uses: actions/[email protected] | ||
with: | ||
token: ${{ steps.generate_token.outputs.token }} | ||
|
||
- name: Set up Bun | ||
uses: oven-sh/setup-bun@v1 | ||
|
||
- name: Install Dependencies | ||
run: bun install | ||
|
||
- name: Commit Changes and Push | ||
run: | | ||
# See where these config values come from at https://stackoverflow.com/a/74071223 | ||
git config --global user.name "ronin-app[bot]" | ||
git config --global user.email 135042755+ronin-app[bot]@users.noreply.github.com | ||
# Commit changes | ||
git fetch | ||
git checkout ${GITHUB_HEAD_REF} | ||
git pull origin ${GITHUB_HEAD_REF} | ||
git commit -a -m 'Bump `bun.lockb`' --no-verify | ||
git push origin ${GITHUB_HEAD_REF} |