v4.1.1: ⬆️ Install/update & other fixes #7
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # .github/workflows/release-published.yaml | |
| # | |
| --- | |
| name: release-published | |
| on: | |
| release: | |
| types: [published] | |
| permissions: | |
| actions: read | |
| contents: write | |
| pull-requests: write | |
| defaults: | |
| run: | |
| # Force all run commands to not use Rosetta 2 | |
| shell: arch -arm64 /bin/zsh -Negku {0} | |
| jobs: | |
| release-published: | |
| if: ${{!github.event.repository.fork}} | |
| runs-on: macos-26 | |
| steps: | |
| - name: 🛒 Checkout repo | |
| env: | |
| GIT_CONFIG_COUNT: 1 | |
| GIT_CONFIG_KEY_0: init.defaultBranch | |
| GIT_CONFIG_VALUE_0: ${{github.event.repository.default_branch}} | |
| uses: actions/checkout@v6 | |
| with: | |
| # Include all history & tags for Scripts/version | |
| fetch-depth: 0 | |
| - name: 🔧 Setup repo | |
| run: Scripts/setup_workflow_repo | |
| - name: 🚰 Apply pr-pull label to custom tap formula bump PR | |
| env: | |
| TOKEN_APP_ID: ${{secrets.TOKEN_APP_ID}} | |
| TOKEN_APP_INSTALLATION_ID: ${{secrets.TOKEN_APP_INSTALLATION_ID}} | |
| TOKEN_APP_PRIVATE_KEY: ${{secrets.TOKEN_APP_PRIVATE_KEY}} | |
| run: | | |
| export GH_TOKEN="$(Scripts/generate_token)" | |
| unsetopt errexit | |
| bump_url="$(gh release -R "${GITHUB_REPOSITORY}" download "${GITHUB_REF_NAME}" -p bump.url -O - 2>/dev/null)" | |
| found_bump_url="${?}" | |
| setopt errexit | |
| if [[ "${found_bump_url}" -eq 0 ]]; then | |
| [[ -n "${bump_url}" ]] && gh pr edit "${bump_url}" --add-label pr-pull | |
| gh release -R "${GITHUB_REPOSITORY}" delete-asset "${GITHUB_REF_NAME}" bump.url -y | |
| else | |
| printf $'No custom tap formula bump PR URL found for tag %s\n' "${GITHUB_REF_NAME}" | |
| fi |