diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 444630e4d4..2d15028ed6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,6 +60,7 @@ jobs: environment: release runs-on: ubuntu-22.04 needs: pypi + if: github.event_name == 'release' env: FORCE_COLOR: 1 @@ -67,16 +68,18 @@ jobs: TOXENV: pkg steps: - - name: Check out src from Git - uses: actions/checkout@v4 - with: - fetch-depth: 0 # needed by setuptools-scm - submodules: true + - name: Extract version + id: extract-version + env: + TAG_NAME: ${{ github.event.release.tag_name }} + run: | + echo "version=${TAG_NAME#v}" >> $GITHUB_OUTPUT - name: Bump homebrew formula uses: mislav/bump-homebrew-formula-action@v3.1 with: # A PR will be sent to github.com/Homebrew/homebrew-core to update this formula: formula-name: ansible-lint + download-url: https://pypi.org/packages/source/a/ansible-lint/ansible-lint-${{ steps.extract-version.outputs.version }}.tar.gz env: COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}