Skip to content

Commit

Permalink
ci: prevent running Deploy and Release workflows in forks
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeliatf committed Jul 9, 2024
1 parent b909ee5 commit aafac72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ permissions:
jobs:
faency:
name: Deploy
if: github.repository == 'traefik/faency'
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Release

on:
push:
branches:
Expand All @@ -7,6 +8,7 @@ on:
jobs:
faency:
name: Release
if: github.repository == 'traefik/faency'
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit aafac72

Please sign in to comment.