Skip to content

Commit 0407041

Browse files
authored
Update GitHub Actions workflows. (#790)
This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit 236437ea328a6f3dc4fbfa4924fc968fc619842a.
1 parent 6b16f56 commit 0407041

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

.github/workflows/run-acceptance-tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,18 @@ jobs:
294294
- name: Workflow is not a success
295295
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') || contains(needs.*.result, 'skipped')
296296
run: exit 1
297+
- uses: guibranco/github-status-action-v2@0849440ec82c5fa69b2377725b9b7852a3977e76
298+
with:
299+
authToken: ${{secrets.GITHUB_TOKEN}}
300+
# Write an explicit status check called "Sentinel" which will only pass if this code really runs.
301+
# Once rolled out, we can make this the only required check for PRs,
302+
# then remove the old conditionals on this job and remove the previous step.
303+
context: 'Sentinel'
304+
description: 'All required checks passed'
305+
state: 'success'
306+
# Write to the PR commit SHA if it's available as we don't want the merge commit sha,
307+
# otherwise use the current SHA for any other type of build.
308+
sha: ${{ github.event.pull_request.head.sha || github.sha }}
297309
- name: Workflow is a success
298310
run: echo "🎉🎈🎉🎈🎉"
299311

scripts/upstream.sh

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,13 @@ start_rebase() {
7979
rm -rf .git/modules/upstream/rebase-merge
8080
cd upstream && git fetch
8181

82-
if [ -z "$TO" ]; then
83-
echo "\$TO not set, assuming TO is the upstream SHA currently committed."
84-
else
85-
git checkout "$TO"
86-
fi
87-
8882
git branch -f local
8983
if [ -n "$FROM" ]; then
90-
git checkout -B pulumi-patch "$FROM"
84+
echo "Rebasing from $FROM to $(git rev-parse HEAD)"
85+
git checkout -B pulumi-patch "$FROM"
9186
else
92-
git checkout -B pulumi-patch
87+
echo "Rebasing in place at $(git rev-parse HEAD)"
88+
git checkout -B pulumi-patch
9389
fi
9490
git branch --set-upstream-to=local pulumi-patch
9591

@@ -120,7 +116,7 @@ assert_rebase_in_progress() {
120116
Didn't detect an upstream rebase in progress.
121117
To start an upstream rebase, run
122118
123-
[FROM=vX.Y.Z] [TO=vA.B.C] make upstream.rebase
119+
[FROM=vX.Y.Z] make upstream.rebase
124120
125121
If you are absolutly sure you are already in a rebase, run
126122
@@ -149,7 +145,7 @@ make "$1"' failed to apply ${patch}. This is because there is a conflict between
149145
the checked out version of upstream and the patch set. To resolve this conflict
150146
run:
151147
152-
FROM=\$LAST_KNOWN_GOOD_COMMIT TO=\$NEW_COMMIT make upstream.rebase
148+
FROM=\$LAST_KNOWN_GOOD_COMMIT make upstream.rebase
153149
154150
This will walk you through resolving the conflict and producing a patch set that
155151
cleanly applies to the current upstream.

0 commit comments

Comments
 (0)