-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Callable deploy comments workflow #49563
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
755a0b9
Create postDeployComments workflow
roryabraham 555d3ec
Add support for additional note from deployer
roryabraham e7ce51d
use callable postDeployComments workflow in deploy.yml
roryabraham b63a80c
Rebuild gh actions
roryabraham 559f506
Add support for custom date
roryabraham 0a1cf58
Make GITHUB_TOKEN required and remove default
roryabraham 0f49559
Fix tests
roryabraham 613f893
match case on ios inputs
roryabraham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
name: Post Deploy Comments | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
version: | ||
description: The version that was deployed | ||
required: true | ||
type: string | ||
env: | ||
description: The environment that was deployed (staging or prod) | ||
required: true | ||
type: string | ||
android: | ||
description: Android deploy status | ||
required: true | ||
type: string | ||
ios: | ||
description: iOS deploy status | ||
required: true | ||
type: string | ||
web: | ||
description: Web deploy status | ||
required: true | ||
type: string | ||
desktop: | ||
description: Desktop deploy status | ||
required: true | ||
type: string | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: The version that was deployed | ||
required: true | ||
type: string | ||
env: | ||
description: The environment that was deployed (staging or prod) | ||
required: true | ||
type: choice | ||
options: | ||
- staging | ||
- production | ||
android: | ||
description: Android deploy status | ||
required: true | ||
type: choice | ||
options: | ||
- success | ||
- failure | ||
- cancelled | ||
- skipped | ||
ios: | ||
description: iOS deploy status | ||
required: true | ||
type: choice | ||
options: | ||
- success | ||
- failure | ||
- cancelled | ||
- skipped | ||
web: | ||
description: Web deploy status | ||
required: true | ||
type: choice | ||
options: | ||
- success | ||
- failure | ||
- cancelled | ||
- skipped | ||
desktop: | ||
description: Desktop deploy status | ||
required: true | ||
type: choice | ||
options: | ||
- success | ||
- failure | ||
- cancelled | ||
- skipped | ||
date: | ||
description: The date when this deploy occurred | ||
required: false | ||
type: string | ||
note: | ||
description: Any additional note you want to include with the deploy comment | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
postDeployComments: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: ./.github/actions/composite/setupNode | ||
|
||
- name: Get pull request list | ||
id: getPullRequestList | ||
uses: ./.github/actions/javascript/getDeployPullRequestList | ||
with: | ||
TAG: ${{ inputs.version }} | ||
GITHUB_TOKEN: ${{ github.token }} | ||
IS_PRODUCTION_DEPLOY: ${{ inputs.env == 'production' }} | ||
|
||
- name: Comment on issues | ||
uses: ./.github/actions/javascript/markPullRequestsAsDeployed | ||
with: | ||
PR_LIST: ${{ steps.getPullRequestList.outputs.PR_LIST }} | ||
IS_PRODUCTION_DEPLOY: ${{ inputs.env == 'production' }} | ||
DEPLOY_VERSION: ${{ inputs.version }} | ||
GITHUB_TOKEN: ${{ github.token }} | ||
ANDROID: ${{ inputs.android }} | ||
DESKTOP: ${{ inputs.desktop }} | ||
IOS: ${{ inputs.ios }} | ||
WEB: ${{ inputs.web }} | ||
DATE: ${{ inputs.date }} | ||
NOTE: ${{ inputs.note }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't make sense to have a default for a required input