Skip to content

Make release tap update job resilient to missing TAP_PUSH_TOKEN#1

Merged
HackPoint merged 5 commits into
mainfrom
copilot/fix-update-homebrew-tap-job
Jun 9, 2026
Merged

Make release tap update job resilient to missing TAP_PUSH_TOKEN#1
HackPoint merged 5 commits into
mainfrom
copilot/fix-update-homebrew-tap-job

Conversation

Copilot AI commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

The release workflow was failing in the Update Homebrew tap job when TAP_PUSH_TOKEN was not configured, because checkout of HackPoint/homebrew-tap required a token. This change gates tap-update steps on token availability so releases no longer fail on missing optional tap credentials.

  • Root-cause handling

    • Added a dedicated token-availability step in update-tap that emits configured=true|false.
    • Logs an explicit skip message when TAP_PUSH_TOKEN is unset.
  • Conditional tap update flow

    • Applied if: steps.tap_token.outputs.configured == 'true' to:
      • Checkout homebrew-tap
      • Update formulae with new version + sha256
      • Commit + push tap update
    • Preserves existing behavior when the token is present; safely no-ops when absent.
  • Workflow snippet

    - name: Check TAP_PUSH_TOKEN availability
      id: tap_token
      env:
        TAP_PUSH_TOKEN: ${{ secrets.TAP_PUSH_TOKEN }}
      run: |
        if [[ -n "$TAP_PUSH_TOKEN" ]]; then
          echo "configured=true" >> "$GITHUB_OUTPUT"
        else
          echo "configured=false" >> "$GITHUB_OUTPUT"
          echo "TAP_PUSH_TOKEN is not set; skipping Homebrew tap update."
        fi
    
    - name: Checkout homebrew-tap
      if: steps.tap_token.outputs.configured == 'true'
      uses: actions/checkout@v4
      with:
        repository: HackPoint/homebrew-tap
        token: ${{ secrets.TAP_PUSH_TOKEN }}
        path: homebrew-tap

Copilot AI changed the title [WIP] Fix failing GitHub Actions job Update Homebrew tap Make release tap update job resilient to missing TAP_PUSH_TOKEN Jun 9, 2026
Copilot AI requested a review from HackPoint June 9, 2026 07:29
@HackPoint
HackPoint marked this pull request as ready for review June 9, 2026 07:32
@HackPoint
HackPoint merged commit 1a7e0ed into main Jun 9, 2026
3 checks passed
@HackPoint
HackPoint deleted the copilot/fix-update-homebrew-tap-job branch June 9, 2026 07:34
HackPoint pushed a commit that referenced this pull request Jun 9, 2026
Make release tap update job resilient to missing TAP_PUSH_TOKEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants