Skip to content

Commit

Permalink
ci: env variables are only accessible in steps
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Sep 5, 2023
1 parent 98558d1 commit df43653
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sync-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ env:

jobs:
sync:
# only run this action from the forked repo
if: ${{ github.repository_owner == $FORK_OWNER }}
runs-on: ubuntu-latest
steps:
- name: get repo name
# required for actions scheduled via cron, as github.event.repository.name won't work
run: |
echo "REPO=$(basename ${{ github.repository }})" >> $GITHUB_ENV
- name: sync fork
# only run this action from the forked repo
if: ${{ github.repository_owner == env.FORK_OWNER }}
run: |
gh repo sync ${{ github.repository }} --source $UPSTREAM_OWNER/$REPO --force

0 comments on commit df43653

Please sign in to comment.