From 8d4a2068390d4d852be628a6ff9b2dce8bbc7ac0 Mon Sep 17 00:00:00 2001 From: yossydev Date: Sun, 29 Oct 2023 17:31:12 +0900 Subject: [PATCH] fix: ci --- .github/workflows/main.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5d9b061..e72dc07 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,8 @@ name: Bump Homebrew Formula on: push: - branches: [main] + tags: "v*" + jobs: homebrew: name: Bump Homebrew formula @@ -9,10 +10,6 @@ jobs: permissions: contents: read steps: - - name: Extract version - id: extract-version - run: | - echo "tag-name=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - name: Bump Homebrew formula uses: mislav/bump-homebrew-formula-action@v3 with: @@ -20,9 +17,9 @@ jobs: formula-path: rando_lgtm.rb homebrew-tap: yossydev/homebrew-RandoLGTM base-branch: main - download-url: https://github.com/yossydev/RandoLGTM/archive/refs/tags/${{ steps.extract-version.outputs.tag-name }}.tar.gz + download-url: https://github.com/yossydev/rando_lgtm/archive/refs/tags/${{ github.ref_name }}.tar.gz commit-message: | - rando_lgtm ${{ steps.extract-version.outputs.tag-name }} + rando_lgtm ${{ github.ref_name }} Created by https://github.com/mislav/bump-homebrew-formula-action env: COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}