Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix generate token #372

Merged
merged 1 commit into from
Aug 6, 2024
Merged
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
33 changes: 16 additions & 17 deletions .github/workflows/crucible-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,6 @@ on: # yamllint disable-line rule:truthy
default: push

jobs:
app-token:
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
token: ${{ steps.generate-token.outputs.token }}
steps:
- name: Generate token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID__TAG_CRUCIBLE_RELEASE }}
private-key: ${{ secrets.PRIVATE_KEY__TAG_CRUCIBLE_RELEASE }}

release-tag:
runs-on: ubuntu-latest
timeout-minutes: 5
Expand Down Expand Up @@ -81,16 +68,22 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
needs:
- app-token
- release-tag
steps:
- name: Generate token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID__TAG_CRUCIBLE_RELEASE }}
private-key: ${{ secrets.PRIVATE_KEY__TAG_CRUCIBLE_RELEASE }}
owner: ${{ github.repository_owner }}
- name: checkout crucible default
uses: actions/checkout@v4
with:
repository: perftool-incubator/crucible
ref: master
path: crucible
token: ${{ needs.app-token.outputs.token }}
token: ${{ steps.generate-token.outputs.token }}
- name: push/delete tag to/from the crucible repo
if: ${{ inputs.dry_run == false }}
env:
Expand Down Expand Up @@ -146,7 +139,6 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
needs:
- app-token
- release-tag
- get-sub-projects
strategy:
Expand All @@ -156,11 +148,18 @@ jobs:
- name: Display sub-project repository name
run: |
echo "repository=${{ matrix.repository }}"
- name: Generate token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID__TAG_CRUCIBLE_RELEASE }}
private-key: ${{ secrets.PRIVATE_KEY__TAG_CRUCIBLE_RELEASE }}
owner: ${{ github.repository_owner }}
- name: checkout sub-project repository
uses: actions/checkout@v4
with:
repository: perftool-incubator/${{ matrix.repository }}
token: ${{ needs.app-token.outputs.token }}
token: ${{ steps.generate-token.outputs.token }}
- name: push/delete release tag
if: ${{ inputs.dry_run == false }}
env:
Expand Down