File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 app-id : ${{ secrets.HOTDATA_AUTOMATION_APP_ID }}
2222 private-key : ${{ secrets.HOTDATA_AUTOMATION_PRIVATE_KEY }}
2323 owner : hotdata-dev
24- repositories : homebrew-tap
24+ repositories : homebrew-tap,hotdata-cli
2525
2626 - uses : actions/checkout@v6
2727 with :
5050 brew update
5151 brew style --except-cops FormulaAudit/Homepage,FormulaAudit/Desc,FormulaAuditStrict --fix "Formula/${filename}" || true
5252
53- # Add shell completions generation if not already present
53+ # Add shell completions generation before the closing "end" of the install method
5454 if ! grep -q 'generate_completions_from_executable' "Formula/${filename}"; then
55- sed -i '/bin\.install "hotdata"/a \ generate_completions_from_executable(bin/"hotdata", "completions")' "Formula/${filename}"
55+ sed -i '/^ end$/i \ generate_completions_from_executable(bin/"hotdata", "completions")' "Formula/${filename}"
5656 fi
5757
5858 git add "Formula/${filename}"
6262
6363 - name : Remove .rb from GitHub Release assets
6464 env :
65- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
6666 run : |
6767 TAG=$(echo "$PLAN" | jq -r '.announcement_tag')
6868 if [ -z "$TAG" ] || [ "$TAG" = "null" ]; then
You can’t perform that action at this time.
0 commit comments