Skip to content

Commit

Permalink
Merge 'dev' ~ update GHA mirror workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Oct 14, 2023
2 parents 3b45aed + afc01ab commit 522e5dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:
run: |
## Initialize
## VARs setup
outputs() { for var in "$@" ; do echo steps.vars.outputs.${var}="${!var}"; echo ::set-output name=${var}::${!var}; done; }
log() { for var in "$@" ; do echo ${var}="${!var}"; done; }
outputs() { step_id="${{ github.action }}"; for var in "$@" ; do echo steps.${step_id}.outputs.${var}="${!var}"; echo "${var}=${!var}" >> $GITHUB_OUTPUT; done; }
# setup defaults
OWNER="${{ matrix.job.owner }}"
SOURCE="${{ matrix.job.source }}" ;
Expand Down Expand Up @@ -112,7 +113,7 @@ jobs:
exit 1
fi
fi
- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: ${{ steps.vars.outputs.OWN_REPO == 'true' }} ## avoid automatic/un-requested runs on forks
- name: Mirror/Sync (branches)
if: ${{ steps.vars.outputs.OWN_REPO == 'true' }} ## avoid automatic/un-requested runs on forks
Expand Down

0 comments on commit 522e5dc

Please sign in to comment.