Skip to content

Commit

Permalink
cicd: using dedicated token for dependabot autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
RobPasMue authored Aug 18, 2023
1 parent ee75f0d commit 6e7cf32
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ jobs:
changelog-check:
name: Changelog Update Check
if: github.event_name == 'pull_request'
permissions:
contents: write # Give the default GITHUB_TOKEN write permission
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -82,10 +80,11 @@ jobs:
activationLabel: 'dependabot'
changelogPath: './CHANGELOG.md'

- uses: stefanzweifel/git-auto-commit-action@v4
- uses: ad-m/github-push-action@master
if: ${{ github.actor == 'dependabot[bot]' }}
with:
commit_message: "Updated Changelog"
github_token: ${{ secrets.DEPENDABOT_TOKEN }}
branch: ${{ github.ref }}

- name: Get all doc files that have changed
id: changed-files-yaml
Expand Down

0 comments on commit 6e7cf32

Please sign in to comment.