Skip to content

Commit 2481015

Browse files
committed
ci: Run actions that need secrets.GITHUB_TOKEN only on rustic-rs org
Signed-off-by: simonsan <[email protected]>
1 parent 846a847 commit 2481015

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ on:
77

88
jobs:
99
build:
10+
if: ${{ github.repository_owner == 'rustic-rs' && github.ref == 'refs/heads/main' }}
11+
name: Build and deploy
1012
runs-on: ubuntu-latest
11-
if: github.ref == 'refs/heads/main'
1213
steps:
1314
- name: checkout
1415
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4

0 commit comments

Comments
 (0)