Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into big-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoît LELEVÉ committed Oct 14, 2021
2 parents b11945d + b1bb8bf commit a54c83f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
runs-on: ubuntu-latest

outputs:
image_updated: ${{ steps.update_image.outputs.commit != '' }}
tag_commit: ${{ steps.update_image.outputs.commit }}

steps:
- name: Check out repo
Expand Down Expand Up @@ -121,15 +121,27 @@ jobs:

if: |
always() && needs.base.result == 'success' &&
((needs.build.result == 'success' && needs.build.outputs.image_updated) || (needs.build.result == 'skipped' && needs.base.outputs.yaml_updated == 'true'))
((needs.build.result == 'success' && needs.build.outputs.tag_commit != '' ) || (needs.build.result == 'skipped' && needs.base.outputs.yaml_updated == 'true'))
runs-on: ubuntu-latest

steps:
- name: Retrieve commit ref
id: commit_ref
run: |
if [[ '${{ needs.build.outputs.tag_commit }}' = '' ]]; then
sha=${{ github.sha }}
else
sha=${{ needs.build.outputs.tag_commit }}
fi
echo ::set-output name=sha::$sha
- name: Check out repo
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ steps.commit_ref.outputs.sha }}

- name: Configure Git
run: |
Expand Down

0 comments on commit a54c83f

Please sign in to comment.