Skip to content

Commit

Permalink
move signing key id into inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Dec 19, 2024
1 parent d65ef39 commit df88537
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Benchmark

on:
workflow_dispatch:
inputs:
Expand All @@ -17,6 +18,10 @@ on:
required: true
type: boolean
default: false
signing-key-id:
required: true
type: string
default: C8B77BCBE16CD2B94B43F9C8757397B82D4ED7B0

jobs:
get-exclude-dirs:
Expand All @@ -39,7 +44,7 @@ jobs:
with:
prefix: 'benchmark'
version: $(jq -r '.version' package.json)
signing-key-id: C8B77BCBE16CD2B94B43F9C8757397B82D4ED7B0
signing-key-id: ${{ inputs.signing-key-id }}
secrets:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}

Expand Down Expand Up @@ -94,7 +99,7 @@ jobs:
branch-prefix: ${{ needs.create-branch-prefix.outputs.branch-prefix }}
directories: ${{ matrix.benchmark_group.directories }}
exclude-dirs: ${{ needs.get-exclude-dirs.outputs.exclude-dirs }}
signing-key-id: C8B77BCBE16CD2B94B43F9C8757397B82D4ED7B0
signing-key-id: ${{ inputs.signing-key-id }}

squash-branches:
needs: [run-benchmarks, create-branch-prefix]
Expand All @@ -103,7 +108,7 @@ jobs:
base-branch: ${{ needs.create-branch-prefix.outputs.base-branch }}
branch-prefix: ${{ needs.create-branch-prefix.outputs.branch-prefix }}
commit-message: 'run benchmarks'
signing-key-id: C8B77BCBE16CD2B94B43F9C8757397B82D4ED7B0
signing-key-id: ${{ inputs.signing-key-id }}
secrets:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -136,7 +141,7 @@ jobs:
branch-name: ${{ needs.create-branch-prefix.outputs.base-branch }}
commit-message: 'analyze benchmark results'
create-branch: 'false'
signing-key-id: C8B77BCBE16CD2B94B43F9C8757397B82D4ED7B0
signing-key-id: ${{ inputs.signing-key-id }}

create-pr:
needs:
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ on:
required: true
type: boolean
default: false
signing-key-id:
required: true
type: string
default: C8B77BCBE16CD2B94B43F9C8757397B82D4ED7B0

jobs:
get-exclude-dirs:
Expand All @@ -41,7 +45,7 @@ jobs:
with:
prefix: 'release'
version: ${{ inputs.release-version }}
signing-key-id: C8B77BCBE16CD2B94B43F9C8757397B82D4ED7B0
signing-key-id: ${{ inputs.signing-key-id }}
secrets:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}

Expand Down Expand Up @@ -94,7 +98,7 @@ jobs:
branch-name: ${{ needs.create-branch-prefix.outputs.base-branch }}
commit-message: 'Prepare release ${{ inputs.release-version }}'
gpg_signing_key: ${{ secrets.GPG_SIGNING_KEY }}
signing-key-id: C8B77BCBE16CD2B94B43F9C8757397B82D4ED7B0
signing-key-id: ${{ inputs.signing-key-id }}

- name: Publish to npm
run: |
Expand Down Expand Up @@ -167,7 +171,7 @@ jobs:
commit-message: 'Update test files for ${{ matrix.test.displayPath }}'
gpg_signing_key: ${{ secrets.GPG_SIGNING_KEY }}
create-branch: 'true'
signing-key-id: C8B77BCBE16CD2B94B43F9C8757397B82D4ED7B0
signing-key-id: ${{ inputs.signing-key-id }}

squash-branches:
needs:
Expand All @@ -179,7 +183,7 @@ jobs:
base-branch: ${{ needs.create-branch-prefix.outputs.base-branch }}
branch-prefix: ${{ needs.create-branch-prefix.outputs.branch-prefix }}
commit-message: 'Update test files for all tests and examples ${{ inputs.release-version }}'
signing-key-id: C8B77BCBE16CD2B94B43F9C8757397B82D4ED7B0
signing-key-id: ${{ inputs.signing-key-id }}
secrets:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit df88537

Please sign in to comment.