Skip to content

Commit

Permalink
ci: publish: Fix remaining actionlint warnings - Add workflow_dispatc…
Browse files Browse the repository at this point in the history
…h trigger + default inputs

   $ actionlint
   .github/workflows/publish.yml:67:343: property "warn_on_upload_failure" is not defined in object type {} [expression]
   .github/workflows/publish.yml:97:21: property "pull_request" is not defined in object type {} [expression]
      |
   97 |           issue: ${{inputs.pull_request}}
      |
  • Loading branch information
trinitronx committed Oct 16, 2024
1 parent 3c2ab8f commit bd6abc4
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,30 @@ on:
pull_request_target:
types:
- labeled
workflow_dispatch:
inputs:
pull_request:
description: Pull request number
type: number
required: true
large_runner:
description: "Run the upload job on a large runner? (default: false)"
type: boolean
required: false
default: false
autosquash:
description: "Squash pull request commits according to Homebrew style? (default: false)"
type: boolean
required: false
default: false
warn_on_upload_failure:
description: "Pass `--warn-on-upload-failure` to `brew pr-pull`? (default: false)"
type: boolean
required: false
default: false
message:
description: "Message to include when autosquashing revision bumps, deletions, and rebuilds (requires autosquash)"
required: false
jobs:
pr-pull:
if: contains(github.event.pull_request.labels.*.name, 'pr-pull')
Expand Down Expand Up @@ -94,7 +118,7 @@ jobs:
uses: Homebrew/actions/post-comment@master
with:
token: ${{secrets.GITHUB_TOKEN}}
issue: ${{inputs.pull_request}}
issue: ${{ inputs.pull_request || github.event.pull_request.number }}
body: ":warning: @${{github.actor}} bottle publish [failed](${{env.RUN_URL}})."
bot_body: ":warning: Bottle publish [failed](${{env.RUN_URL}})."
bot: github-actions[bot]
Expand Down

0 comments on commit bd6abc4

Please sign in to comment.