From bd6abc4c18403917101772ce5e1ba49833acdeed Mon Sep 17 00:00:00 2001 From: James Cuzella Date: Wed, 16 Oct 2024 15:25:54 -0600 Subject: [PATCH] ci: publish: Fix remaining actionlint warnings - Add workflow_dispatch 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}} | --- .github/workflows/publish.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 46b6ad5..a1f0883 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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') @@ -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]