Skip to content

Commit

Permalink
wip: test allowed-to-run
Browse files Browse the repository at this point in the history
  • Loading branch information
coroiu committed Dec 16, 2024
1 parent 3710bf6 commit 40b1806
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,23 @@ jobs:
if: ${{ needs.check-secrets.outputs.has_secrets == 'true' }}
uses: bitwarden/gh-actions/.github/workflows/check-run.yml@main

allowed-to-run:
name: Stop job if not allowed to run
needs:
- check-secrets
- check-run
if: always()
runs-on: ubuntu-22.04
steps:
- name: Fail
if: ${{ needs.check-run.result == 'failure' }}
run: exit 1

setup:
name: Setup
runs-on: ubuntu-22.04
needs:
- check-run
- allowed-to-run
outputs:
version: ${{ steps.version.outputs.value }}
node_version: ${{ steps.retrieve-node-version.outputs.node_version }}
Expand Down

0 comments on commit 40b1806

Please sign in to comment.