Skip to content

Commit

Permalink
fix the docker tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ericrosenthal committed Apr 13, 2021
1 parent 868e0ab commit d88f034
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -539,19 +539,19 @@ jobs:
# NOTE: Right now it will only push on every merge into develop_pwa because we have a standing PR from it -> develop.
widechat-ecr-push:
runs-on: ubuntu-latest
if: ${{ github.base_ref == 'develop_pwa' && github.event_name == 'push' }}
if: ${{ github.ref == 'refs/heads/develop_pwa' && github.event_name == 'push' }}
needs: test

steps:
- uses: actions/checkout@v2

- name: Parse for PR num
- name: Parse for branch
run: |
git_ref=${{ github.ref }}
arrRef=(${git_ref//\// })
pr_num=${arrRef[2]}
echo "pr_num is this: $pr_num"
echo "PR_TAG=pr-num-$pr_num" >> $GITHUB_ENV
branch=${arrRef[2]}
echo "branch is this: $branch"
echo "PR_TAG=latest-$branch" >> $GITHUB_ENV
- name: Restore build
uses: actions/download-artifact@v1
Expand Down

0 comments on commit d88f034

Please sign in to comment.