Skip to content

Commit

Permalink
Use PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Sep 20, 2024
1 parent 3ff7052 commit a9a4102
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/auto-update-gemfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- cron: '0 0 * * 0' # Every Sunday at midnight
push:
branches:
- quinna/update-gemfiles-workflow # TODO: remove, for testing
- tonycthsu/pat # TODO: remove, for testing
workflow_dispatch:

concurrency:
Expand Down Expand Up @@ -83,12 +83,13 @@ jobs:
path: gemfiles
pattern: gha${{ github.run_id }}-datadog-gem-*
merge-multiple: true

- run: git diff

- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GH_ACTION_PAT }}
branch: update-latest-gemfiles
commit-message: "update latest gemfiles, workflow run: ${{ github.run_id }}"
delete-branch: true
Expand All @@ -102,4 +103,4 @@ jobs:
Merge if green, otherwise add to backlog.
The default behavior is to create a pull request that will be continually updated with new changes
until it is merged or closed.
until it is merged or closed.
2 changes: 2 additions & 0 deletions .github/workflows/lock-dependency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_ACTION_PAT }}
- uses: actions/download-artifact@v4
with:
path: gemfiles
Expand Down

0 comments on commit a9a4102

Please sign in to comment.