Fixed issue where releases may not get their git tag

This commit is contained in:
Antoine Gersant 2020-12-13 20:05:42 -08:00
parent 2c21609699
commit e25af0e9b5

View file

@ -24,16 +24,21 @@ jobs:
uses: actions/checkout@master
with:
ref: release
- name: Update Polaris version in Cargo.toml
- name: Update Version in Cargo.toml
run: gawk -i inplace '/^version/ { if (count == 0) { $3 = "\"${{ github.event.inputs.versionNumber }}\""; count++ } } 1' Cargo.toml
- name: Commit And Tag Changes
- name: Commit Cargo.toml Version Change
uses: EndBug/add-and-commit@v5
with:
branch: release
message: 'Updated version number'
tag: '${{ github.event.inputs.versionNumber }} --force'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Add <version number> Git Tag
run: |
git config --global user.name ${{ github.actor }}
git config --global user.email "<>"
git tag -f -a ${{ github.event.inputs.versionNumber }} -m "Version number"
git push -f --tags
create_release:
name: Create Github Release