Skip to content

Commit 7ddd47d

Browse files
Merge pull request #9851 from rafaeltonholo/ci/dependency-guard-set-token-on-checkout
ci(dependency-guard-update): add token to checkout job; add some logs before pushing to repository
2 parents 3b759b5 + 9aa3edd commit 7ddd47d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/dependabot-dependency-guard-update.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3838
with:
3939
ref: ${{ github.head_ref }}
40+
token: ${{ steps.app-token.outputs.token || github.token }}
4041

4142
- name: Prepares environment
4243
uses: ./.github/actions/setup
@@ -49,12 +50,20 @@ jobs:
4950
APP_SLUG: ${{ steps.app-token.outputs.app-slug || 'github-actions'}}
5051
APP_USER_ID: ${{ vars.BOT_USER_ID || '41898282' }}
5152
run: |
53+
set -x
54+
5255
git config --global user.name "${APP_SLUG}"
5356
git config --global user.email "${APP_USER_ID}+${APP_SLUG}[bot]@users.noreply.github.com"
5457
git add .
5558
if ! git diff --cached --quiet; then
59+
git config user.name
60+
git config user.email
61+
git status
5662
git commit -m "chore(deps): Update dependency guard files on behalf of @dependabot"
63+
git log -n 2
5764
git push
5865
else
5966
echo "No changes to commit"
6067
fi
68+
69+
set +x

0 commit comments

Comments
 (0)