Fixup action #3
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: test | ||
on: | ||
workflow_dispatch: | ||
merge_group: | ||
pull_request_target: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
branches: [dev] | ||
env: | ||
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | ||
jobs: | ||
Check failure on line 13 in .github/workflows/ci.yml GitHub Actions / testInvalid workflow file
|
||
assert-private-key: | ||
name: Check private key exists | ||
runs-on: ubuntu-latest | ||
steps: | ||
- if: {{ env.PRIVATE_KEY == "" }} | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
core.setFailed('Failed to access PRIVATE_KEY secret') |