Skip to content

Commit

Permalink
Update bump-homebrew-formula configuration
Browse files Browse the repository at this point in the history
Moving the conversation from Homebrew/homebrew-core#149334 (comment)

This updates the `download-url` input to the `bump-homebrew-formula-action` to be a URL in the format of `https://pypi.org/packages/source/a/ansible-lint/ansible-lint-<VERSION>.tar.gz`.

That resource ultimately resolves to `https://files.pythonhosted.org/packages/*/*/*/ansible-lint-<VERSION>.tar.gz`, which is the URL format currently present in the homebrew-core formula. I find the latter form unwieldy, and I think that the `pypi.org`-hosted resource looks much nicer and should be the same trustworthiness.
  • Loading branch information
mislav authored Oct 4, 2023
1 parent 98e18c4 commit f6f858a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,26 @@ jobs:
environment: release
runs-on: ubuntu-22.04
needs: pypi
if: github.event_name == 'release'

env:
FORCE_COLOR: 1
PY_COLORS: 1
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/[email protected]
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 }}

0 comments on commit f6f858a

Please sign in to comment.