Skip to content

Commit f3d2cde

Browse files
committed
Use spring-github-workflows for trigger-dependabot-updates.yml
1 parent 30f7b3a commit f3d2cde

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed
Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,9 @@
11
name: Trigger Dependabot Updates
2-
3-
# This workflow is a convenient alternative to the GitHub UI interface for Dependabot updates.
4-
# The workflow performs Toggle executable permission as a superficial change on the dependabot.yml file.
5-
# That is enough for Dependabot to understand that some changes have happened in the dependency updates config.
6-
72
on:
83
workflow_dispatch:
94

105
jobs:
116
trigget-dependabot:
12-
runs-on: ubuntu-latest
13-
steps:
14-
15-
- uses: actions/checkout@v6
16-
with:
17-
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
18-
show-progress: false
19-
20-
- name: Touch dependabot.yml
21-
run: |
22-
file=".github/dependabot.yml"
23-
# Toggle executable permission as a superficial change
24-
[ -x "$file" ] && chmod -x "$file" || chmod +x "$file"
25-
26-
git config --global user.name 'Spring Builds'
27-
git config --global user.email 'builds@springframework.org'
28-
git commit -am "CI/CD: Trigger dependabot updates"
29-
git push origin
7+
uses: spring-io/spring-github-workflows/.github/workflows/spring-trigger-dependabot-updates.yml@main
8+
secrets:
9+
GH_ACTIONS_REPO_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}

0 commit comments

Comments
 (0)