Skip to content

Test workflow

Test workflow #14

Workflow file for this run

name: Test access to secrets
on:
workflow_dispatch:
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review]
branches: [dev]
merge_group:
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
jobs:
assert-private-key:
name: Check private key exists
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
script: |
if ("$PRIVATE_KEY" == "") {
core.setFailed('Failed to access PRIVATE_KEY secret')
}