From 6bd47e19508bf91e6f4498e72e7beb294d86fccf Mon Sep 17 00:00:00 2001 From: sciencewhiz Date: Sat, 29 Jun 2024 11:59:28 -0700 Subject: [PATCH] Add action to tag on allwpilib tag dispatch --- .github/workflows/bump.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/bump.yml diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml new file mode 100644 index 00000000..0fec1705 --- /dev/null +++ b/.github/workflows/bump.yml @@ -0,0 +1,23 @@ +--- +name: bump + +on: [repository_dispatch] + +jobs: + bump: + if: github.event_name == 'repository_dispatch' && github.event.action == 'tag' + runs-on: ubuntu-latest + steps: + - name: Information + run: | + echo "Version update for ${{ github.event.client_payload.package_name }} -> ${{ github.event.client_payload.package_version }} requested" + - uses: actions/checkout@v4 + with: + token: ${{ secrets.TOOL_REPO_ACCESS_TOKEN }} + fetch-depth: 0 + + - name: Tag and push + shell: bash + run: | + git tag ${{ github.event.client_payload.package_version }} + git push origin ${{ github.event.client_payload.package_version }}