Skip to content

Commit

Permalink
Prevent workflows running on forks (openwallet-foundation#1142)
Browse files Browse the repository at this point in the history
Signed-off-by: jamshale <[email protected]>
  • Loading branch information
jamshale authored Oct 21, 2024
1 parent 6b3821e commit b2d3fa8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/create-release-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
contents: write
pull-requests: write
runs-on: ubuntu-latest
if: github.repository == 'openwallet-foundation/acapy-plugins'
outputs:
current_available_version: ${{ steps.current_available_version.outputs.version }}
current_global_version: ${{ steps.current_global_version.outputs.version }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
permissions:
contents: write
runs-on: ubuntu-latest
if: github.repository == 'openwallet-foundation/acapy-plugins'
outputs:
current_global_version: ${{ steps.current_global_version.outputs.version }}
should_create_release: ${{ steps.should_create_release.outputs.should_create_release }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
integration-tests:
name: "Integration Tests"
runs-on: ubuntu-latest
if: (github.repository == 'openwallet-foundation/acapy-plugins') && ((github.event_name == 'pull_request' && github.event.pull_request.draft == false) || (github.event_name != 'pull_request'))
steps:
#----------------------------------------------
# Check out repo
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ permissions:
jobs:
deploy:
runs-on: ubuntu-latest
if: github.repository == 'openwallet-foundation/acapy-plugins'
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit b2d3fa8

Please sign in to comment.