chore: remove pr template #604
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
name: matrix secret | |
on: | |
workflow_dispatch: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
env: | |
fruit: APPLES | |
jobs: | |
dereference: | |
strategy: | |
matrix: | |
org: [apples, bananas, carrots] #Array of org mnemonics to use below | |
include: | |
# includes a new variable for each org (this is effectively a switch statement) | |
- org: apples | |
secret: APPLES | |
- org: bananas | |
secret: BANANAS | |
- org: carrots | |
secret: CARROTS | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- run: echo "org:${{ matrix.org }} secret:${{ secrets[matrix.secret] }}" | |
- run: echo "org:${{ matrix.org }} secret:${{ secrets[env.secret] }}" | |
env: | |
secret: ${{ matrix.secret }} | |
- run: echo "env:${{ env.fruit }} secret:${{ secrets[env.fruit] }}" |