levers ben corlett #49
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
paths: | |
- .gpg-id | |
workflow_dispatch: | |
jobs: | |
setup-job: | |
runs-on: ubuntu-22.04 | |
outputs: | |
key_ids: ${{ steps.extract-key-ids.outputs.key_ids }} | |
steps: | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 | |
- name: Extract key ids from .gpg-id and output as a json list | |
id: extract-key-ids | |
run: echo "key_ids=$(jq -c --raw-input --slurp 'split("\n") | map(select(. != ""))' .gpg-id)" >> $GITHUB_OUTPUT | |
check-keys: | |
runs-on: ubuntu-22.04 | |
needs: setup-job | |
strategy: | |
fail-fast: false | |
matrix: | |
key_id: ${{ fromJSON(needs.setup-job.outputs.key_ids) }} | |
env: | |
GPG_KEY_ID: ${{ matrix.key_id }} | |
steps: | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 | |
- name: Import key from keyserver | |
run: make .download-gpg-key |