Skip to content

Commit

Permalink
Reintroduced tag grabbing
Browse files Browse the repository at this point in the history
  • Loading branch information
og113 committed Oct 24, 2024
1 parent dcd330e commit 9bd2091
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,20 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Get the latest tag and date
id: version_info
run: |
echo "tag=$(echo $GITHUB_REF | sed 's/refs\/tags\///')" >> $GITHUB_ENV
echo "date=$(date +"(%d-%m-%Y)")" >> $GITHUB_ENV
- name: Check if WallGoMatrix version matches GitHub tag
run: |
WallGoMatrixVersion=$(sed -n 's/^\([[:space:]]*\)"Version" -> "\([^.]*\)\.\([^.]*\)\.\([^.]\)",/v\2.\3.\4/p' src/PacletInfo.m)
if [ "$WallGoMatrixVersion" == "${{ github.ref }}" ]; then
if [ "$WallGoMatrixVersion" == "${{ env.tag }}" ]; then
echo "WallGoMatrixVersion matches the tag"
else
echo "Error: WallGoMatrixVersion ($WallGoMatrixVersion) does not match tag (${{ github.ref }})" 1>&2
echo "Error: WallGoMatrixVersion ($WallGoMatrixVersion) does not match tag (${{ env.tag }})" 1>&2
exit 64
fi
Expand Down

0 comments on commit 9bd2091

Please sign in to comment.