Skip to content

Commit

Permalink
chore: Add dependabot automation (#5266)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomfrenken authored Dec 10, 2024
1 parent 1cf1672 commit 2602c02
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/auto-dependabot-fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: auto-dependabot-fix

on:
pull_request: ~

jobs:
building:
if: github.actor == 'dependabot[bot]' && !github.event.pull_request.head.repo.fork
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.GH_CLOUD_SDK_JS_ADMIN_WRITE_TOKEN }}
- run: git fetch --depth=1
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'yarn'
- name: Install Dependencies & Compile
run: yarn install --frozen-lockfile --ignore-engines
- name: Commit Changes if needed
run: |
diff=`git diff`
if [ ! -z "$diff" ]; then
git config --global user.email "[email protected]"
git config --global user.name "cloud-sdk-js"
git commit -m "Regenerate check-public-api action" -a
git push
fi

0 comments on commit 2602c02

Please sign in to comment.