Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/combine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,18 @@ jobs:
combine:
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App Token
id: generate-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.HYPER_GONK_APP_ID }}
private-key: ${{ secrets.HYPER_GONK_PRIVATE_KEY }}

- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || 'main' }}
# This action secret contains a fine-grained personal access token with permissions to read/write repo content
# It is necessary because the default GITHUB_TOKEN cannot re-trigger workflows after pushing
token: ${{ secrets.COMBINE_CI_TOKEN || secrets.GITHUB_TOKEN }}
# Use Hyper Gonk token to allow CI to trigger on commits pushed by this workflow
token: ${{ steps.generate-token.outputs.token }}

- name: yarn-install
uses: ./.github/actions/yarn-install-with-cache
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ jobs:
- name: Install Dependencies
run: yarn install --no-immutable

- name: Generate GitHub App Token
id: generate-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.HYPER_GONK_APP_ID }}
private-key: ${{ secrets.HYPER_GONK_PRIVATE_KEY }}

- name: Create Release PR or Publish to NPM
id: changesets
uses: changesets/action@v1
Expand All @@ -37,5 +44,5 @@ jobs:
publish: yarn release
env:
NPM_CONFIG_PROVENANCE: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
10 changes: 9 additions & 1 deletion .github/workflows/update-hyperlane-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,18 @@ jobs:
pull-requests: write

steps:
- name: Generate GitHub App Token
id: generate-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.HYPER_GONK_APP_ID }}
private-key: ${{ secrets.HYPER_GONK_PRIVATE_KEY }}

- name: Checkout repository
uses: actions/checkout@v4
with:
ref: main
token: ${{ steps.generate-token.outputs.token }}

- name: Configure Git
run: |
Expand Down Expand Up @@ -73,7 +81,7 @@ jobs:
- name: Check for changes and create PR
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
if ! git diff --quiet; then
git checkout -b ci/update-hl-deps
Expand Down