Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
fix extract tag
Browse files Browse the repository at this point in the history
  • Loading branch information
epwalsh committed Apr 23, 2020
1 parent 8f8288b commit 1dc05dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ jobs:
- name: Set version suffix (release)
if: github.event_name == 'release'
run: |
# Remove '/refs/tags/' to get the actual tag from the release.
TAG=${GITHUB_REF#/refs/tags/};
# Remove 'refs/tags/' to get the actual tag from the release.
TAG=${GITHUB_REF#refs/tags/};
# The tag might have a suffix like `.rc1`, which we need to set
# as an environment variable so that the package is built with this suffix.
SUFFIX=$(echo $TAG | sed -E 's/v[0-9]+\.[0-9]+\.[0-9]+//')
Expand Down Expand Up @@ -250,7 +250,7 @@ jobs:
if: github.repository == 'allenai/allennlp' && github.event_name == 'release'
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
TAG=${GITHUB_REF#/refs/tags/};
TAG=${GITHUB_REF#refs/tags/};
docker tag allennlp allennlp/allennlp:$TAG
docker push allennlp/allennlp:$TAG
Expand Down Expand Up @@ -302,7 +302,7 @@ jobs:
if: github.repository == 'allenai/allennlp' && github.event_name != 'schedule'
run: |
if [[ $GITHUB_EVENT_NAME == 'release' ]]; then
DIRECTORY=${GITHUB_REF/\/refs\/tags\//};
DIRECTORY=${GITHUB_REF#refs/tags/};
else
DIRECTORY=master;
fi
Expand Down

0 comments on commit 1dc05dd

Please sign in to comment.