Skip to content

Commit

Permalink
extract on all
Browse files Browse the repository at this point in the history
  • Loading branch information
miraclx committed Sep 4, 2022
1 parent 890a1dd commit c113e07
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,10 @@ jobs:

- name: Get Git SHAs
id: get-shas
if: github.event_name == 'pull_request'
run: |
BASE_SHA=$( echo ${{ github.event.pull_request.base.sha }} | head -c7 )
BASE_SHA=$( echo ${{ github.event.pull_request.base.sha || github.sha }} | head -c7 )
echo "::set-output name=base_sha::$BASE_SHA"
HEAD_SHA=$( echo ${{ github.event.pull_request.head.sha }} | head -c7 )
HEAD_SHA=$( echo ${{ github.event.pull_request.head.sha || github.sha }} | head -c7 )
echo "::set-output name=head_sha::$HEAD_SHA"
- name: Extract metadata (tags, labels) for Docker
Expand All @@ -140,7 +139,6 @@ jobs:
- name: Extract Tags
id: get-docker-tag
if: github.event_name == 'pull_request'
run: |
PR_TAG=$( echo "${{ steps.docker-meta.outputs.tags }}" | sed 's/freyrcli\/freyrjs-git://g' )
echo "::set-output name=tag::$PR_TAG"
Expand Down

0 comments on commit c113e07

Please sign in to comment.