Skip to content

Update the last download to v4 #86

Update the last download to v4

Update the last download to v4 #86

Workflow file for this run

name: cargo-tag
on:
push:
branches: [ "main" ]
jobs:
update-tag:
runs-on: ubuntu-latest
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.TAG_TOKEN }}
- uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: jq
- uses: dtolnay/rust-toolchain@stable
- name: Update tag with Cargo.toml
run: |
git config --global user.name 'Tag updating bot'
git config --global user.email '[email protected]'
git remote set-url origin https://x-access-token:${{ secrets.TAG_TOKEN }}@github.com/${{ github.repository }}
VERSION="$(cargo metadata --format-version 1 | jq '.packages | .[] | select(.name == "ncsu_cal_lib")| .version' | tr -d '"')"
git tag -m '' -a v"$VERSION"
git push origin v"$VERSION"
continue-on-error: true