-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update moratorium check and change management workflows (#3107)
* chore: move tps checks to separate workflow files * chore: update release workflows to check for moratorium * chore: update promote workflow to use record release workflow * chore: yet another fix for the devcenter-doc-update job * chore: allow tps workflows to inherit secrets * chore: add git checkout to moratorium check
- Loading branch information
Showing
6 changed files
with
64 additions
and
22 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,14 @@ | ||
name: Check for moratorium | ||
|
||
on: [workflow_dispatch, workflow_call] | ||
|
||
jobs: | ||
moratoriumCheck: | ||
runs-on: ubuntu-latest | ||
environment: ChangeManagement | ||
steps: | ||
# checkout required to get github.sha | ||
- uses: actions/checkout@v3 | ||
- env: | ||
TPS_API_TOKEN: ${{ secrets.TPS_API_TOKEN_PARAM }} | ||
run: ./scripts/release/tps_check_lock cli ${{ github.sha }} |
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,30 @@ | ||
name: Publish release to Change Management | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
isStableCandidate: | ||
type: boolean | ||
description: Is this a stable/prod candidate? | ||
required: true | ||
default: false | ||
workflow_call: | ||
inputs: | ||
isStableCandidate: | ||
type: boolean | ||
description: Is this a stable/prod candidate? | ||
required: true | ||
default: false | ||
|
||
jobs: | ||
publishToChangeManagement: | ||
runs-on: ubuntu-latest | ||
if: ${{ fromJSON(inputs.isStableCandidate) }} | ||
environment: ChangeManagement | ||
steps: | ||
# checkout required to get github.sha | ||
- uses: actions/checkout@v3 | ||
- env: | ||
ACTOR_EMAIL: ${{ secrets.TPS_API_RELEASE_ACTOR_EMAIL | ||
TPS_API_TOKEN: ${{ secrets.TPS_API_TOKEN_PARAM }} | ||
run: ./scripts/postrelease/tps_record_release cli ${{ github.sha }} |