Skip to content

Commit

Permalink
feat(IDX): use new github app (#4080)
Browse files Browse the repository at this point in the history
This PR moves any workflows that generate PRs to a new app and require
using a new environment.
  • Loading branch information
cgundy authored Feb 24, 2025
1 parent af1e51b commit 01e65de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/container-base-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,16 @@ jobs:
name: Update Reference Files PR
runs-on: ubuntu-latest
timeout-minutes: 10
environment: CREATE_PR
needs: [build-base-image]
if: ${{ github.ref_name == 'master' }}
steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}
app-id: ${{ vars.PR_CREATION_BOT_APP_ID }}
private-key: ${{ secrets.PR_CREATION_BOT_PRIVATE_KEY }}

- name: Checkout
uses: actions/checkout@v4
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/update-mainnet-revisions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ defaults:
jobs:
update-ic-versions-file:
runs-on: ubuntu-latest
environment: CREATE_PR
steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}
app-id: ${{ vars.PR_CREATION_BOT_APP_ID }}
private-key: ${{ secrets.PR_CREATION_BOT_PRIVATE_KEY }}

- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -37,6 +38,7 @@ jobs:
update-nervous-system-wasms:
runs-on:
labels: dind-small
environment: CREATE_PR
container:
image: ghcr.io/dfinity/ic-build@sha256:908c9b2abe0647cd54a2485117c263b0dae4a8aba8f25bc073813b09be9b1d59
options: >-
Expand All @@ -46,8 +48,8 @@ jobs:
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}
app-id: ${{ vars.PR_CREATION_BOT_PRIVATE_KEY }}
private-key: ${{ secrets.PR_CREATION_BOT_APP_ID }}

- name: Checkout repository
uses: actions/checkout@v4
Expand Down

0 comments on commit 01e65de

Please sign in to comment.