-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49563 from Expensify/Rory-CallableDeployCommentsW…
…orkflow Callable deploy comments workflow (cherry picked from commit 06a59ad) (CP triggered by AndrewGable)
- Loading branch information
1 parent
7969386
commit c8fec33
Showing
6 changed files
with
158 additions
and
32 deletions.
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