Add empty workflow for manually running canary in smithy-rs on behalf of external contributors (#3517)

## Motivation and Context
The same reason for #3500, which is GitHub actions do not allow us to
manually trigger them unless they are first checked-in to the main
branch.

## Description
This PR adds a skeletal workflow file for manually invoking canary
within `smithy-lang/smithy-rs` on behalf of external contributors.
Forked repositories will be missing repository secrets to run the canary
in CI so it will always fail for external contributors. As a workaround,
maintainers will manually trigger `manual-canary.yml`, given a PR number
from an external contributor as input.

A subsequent PR will fill in the blank.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
This commit is contained in:
ysaito1001 2024-03-27 10:12:06 -05:00 committed by GitHub
parent 2d003567e5
commit 0694727eb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 0 deletions

18
.github/workflows/manual-canary.yml vendored Normal file
View File

@ -0,0 +1,18 @@
# This workflow allows maintainers to manually run the canary given an external contributor's pull request created from
# a forked repository, which does not have required repository secrets to execute the canary.
name: Invoke Canary as Maintainer
on:
workflow_dispatch:
inputs:
pull_request_number:
description: The PR number to invoke the canary for.
required: true
type: string
jobs:
canary:
name: Canary
runs-on: ubuntu-latest
steps:
- name: Invoke canary
run: echo "Hello World"