Add TRAP Instructions, Signed Support, PennSim Testing (#7) #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 == "lc3sim")| .version' | tr -d '"')" | |
git tag -m '' -a v"$VERSION" | |
git push origin v"$VERSION" | |
continue-on-error: true |