From 6e664c020cb72c0568160020db6f37c882d8f2b5 Mon Sep 17 00:00:00 2001 From: Joel Wachsler Date: Sun, 10 Jul 2022 20:21:56 +0000 Subject: [PATCH] Auto tag --- .github/workflows/tag.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/tag.yml diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml new file mode 100644 index 0000000..82f480c --- /dev/null +++ b/.github/workflows/tag.yml @@ -0,0 +1,18 @@ +on: + push: + branches: + - 'main' +jobs: + tag: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v2 + + - name: Determine version + id: version + run: cat Cargo.toml | grep version | head -1 | sed 's/version = //' | sed 's/"//g' + + - uses: Klemensas/action-autotag@stable + with: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + version: "${{ steps.previous_step.outputs.version }}" \ No newline at end of file