From 31bba8461ad1fc452b39dea3766379fae55d8711 Mon Sep 17 00:00:00 2001 From: Minecraft_killer Date: Mon, 15 Apr 2024 05:53:27 +0200 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..0269e97 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +name: Update Tag + +on: + push: + branches: + - main + +jobs: + update-tag: + runs-on: ubuntu-latest + inputs: + tag-name: + description: 'Name of the tag to be updated' + required: true + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Create tag + id: create_tag + run: | + git tag -f ${{ inputs.tag-name }} main + git push -f origin ${{ inputs.tag-name }}