forked from microsoft/FluidFramework
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13b575a
commit 3dbb785
Showing
2 changed files
with
20 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ jobs: | |
outputs: | ||
pr_num: ${{ steps.workflow_run_load_pr.outputs.pr_num || steps.workflow_dispatch_load_pr.outputs.pr_num }} | ||
is_release_branch: ${{ steps.workflow_run_is_release_branch.outputs.is_release_branch || steps.workflow_dispatch_is_release_branch.outputs.is_release_branch }} | ||
commit_sha: ${{ steps.workflow_run_load_commit_sha.outputs.commit_sha }} | ||
steps: | ||
|
||
### These steps run on workflow_run event only ### | ||
|
@@ -70,6 +71,12 @@ jobs: | |
working-directory: ./artifacts | ||
run: echo "is_release_branch=$(cat is_release_branch)" >> $GITHUB_OUTPUT | ||
|
||
- name: "workflow_run: Load commit_sha" | ||
id: workflow_run_load_commit_sha | ||
if: github.event_name == 'workflow_run' | ||
working-directory: ./artifacts | ||
run: echo "commit_sha=$(cat commit_sha)" >> $GITHUB_OUTPUT | ||
|
||
### These steps run on workflow_dispatch event only ### | ||
- name: "workflow_dispatch: Load PR number" | ||
id: workflow_dispatch_load_pr | ||
|
@@ -87,6 +94,15 @@ jobs: | |
needs: metadata | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set commit status as pending | ||
# release notes: https://github.com/myrotvorets/set-commit-status-action/releases/tag/v2.0.1 | ||
uses: myrotvorets/set-commit-status-action@3730c0a348a2ace3c110851bed53331bc6406e9f # ratchet:myrotvorets/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
sha: ${{ needs.metadata.outputs.commit_sha }} | ||
status: pending | ||
context: Check PR approval | ||
|
||
# release notes: https://github.com/actions/checkout/releases/tag/v4.1.7 | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4 | ||
with: | ||
|
@@ -146,6 +162,7 @@ jobs: | |
uses: myrotvorets/set-commit-status-action@3730c0a348a2ace3c110851bed53331bc6406e9f # ratchet:myrotvorets/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
sha: ${{ needs.metadata.outputs.commit_sha }} | ||
status: success | ||
context: Check PR approval | ||
|
||
|
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 |
---|---|---|
|
@@ -74,6 +74,9 @@ jobs: | |
- name: Save is_release_branch | ||
run: echo ${{ needs.check_branch.outputs.is_release_branch }} > ./artifacts/is_release_branch | ||
|
||
- name: Save commit SHA | ||
run: echo ${{ github.event.pull_request.head.ref }} > ./artifacts/commit_sha | ||
|
||
- name: Upload artifact | ||
# release notes: https://github.com/actions/upload-artifact/releases/tag/v4.4.0 | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # ratchet:actions/[email protected] | ||
|