Skip to content

Commit

Permalink
Avoid to run GitHub actions on forks
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaiacs authored Jul 10, 2023
1 parent d8eb9f8 commit e1edf1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/sync-to-git.gesis.org.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
sync:
name: GitLab Sync
if: github.repository == 'GESIS-Methods-Hub/minimal-example-qmd-rstats-units'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -17,4 +18,4 @@ jobs:
with:
username: ${{ github.actor }}
url: https://git.gesis.org/methods-hub/minimal-example-qmd-rstats-units.git
token: ${{ secrets.GITLAB_TOKEN }}
token: ${{ secrets.GITLAB_TOKEN }}

0 comments on commit e1edf1d

Please sign in to comment.