Skip to content

Commit

Permalink
Merge pull request #55 from cyber-dojo/update-ci-workflow-setup-2
Browse files Browse the repository at this point in the history
Update kosli-dry-run handling in CI workflow setup job
  • Loading branch information
JonJagger authored Oct 12, 2024
2 parents b6b10fc + 6e7824a commit c712732
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ jobs:
echo "image_name=${IMAGE_NAME}" >> ${GITHUB_OUTPUT}
echo "image_name_previous=${IMAGE_NAME_PREVIOUS}" >> ${GITHUB_OUTPUT}
if [ "${{ vars.KOSLI_DRY_RUN }}" == "true" ] ; then # Org override
if [ "${{ vars.KOSLI_DRY_RUN }}" == "true" ] ; then # Org override
value=true
elif [ "${{ env.KOSLI_DRY_RUN }}" != "" ] ; then # Repo override
elif [ "${{ env.KOSLI_DRY_RUN }}" != "" ] ; then # Repo override
value="${{ env.KOSLI_DRY_RUN }}"
elif [ "${{ github.ref }}" == 'refs/heads/main' ] ; # Branch check
elif [ "${{ github.ref }}" == 'refs/heads/main' ] ; then # Branch check
value=false
else
value=true # Default
value=true # Default
fi
echo "kosli_dry_run=${value}" >> ${GITHUB_OUTPUT}
Expand Down

0 comments on commit c712732

Please sign in to comment.