Skip to content

Commit a296967

Browse files
Update GitHub Actions workflows. (#1336)
This PR was triggered by @t0yv0 generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit [8986209fcafff57b470901cc48f1cb2025b4caa1](pulumi/ci-mgmt@8986209). ## Rebasing this PR If this PR falls behind `master` on pulumi-alicloud and needs to be regenerated against the latest tip, dispatch [`update-workflows-single-bridged-provider`](https://github.com/pulumi/ci-mgmt/actions/workflows/update-workflows-single-bridged-provider.yml): ```sh gh workflow run update-workflows-single-bridged-provider.yml \ --repo pulumi/ci-mgmt \ -f provider_name=alicloud \ -f automerge=false ``` That re-runs this same workflow against current ci-mgmt `master`, closes this stale PR (via the "obsolete PR" cleanup step above), and opens a fresh one rebased on the provider's current `master`. Co-authored-by: Pulumi Bot <bot@pulumi.com>
1 parent c1700d4 commit a296967

3 files changed

Lines changed: 17 additions & 27 deletions

File tree

.github/workflows/prerequisites.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,13 @@ jobs:
135135
env:
136136
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
137137
run: |
138-
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
139-
{
140-
echo "SCHEMA_CHANGES<<$EOF";
141-
schema-tools compare -r github://api.github.com/pulumi -p alicloud -o "${{ inputs.default_branch }}" -n --local-path=provider/cmd/pulumi-resource-alicloud/schema.json;
142-
echo "$EOF";
143-
} >> "$GITHUB_ENV"
138+
schema-tools compare -r github://api.github.com/pulumi -p alicloud -o "${{ inputs.default_branch }}" -n --local-path=provider/cmd/pulumi-resource-alicloud/schema.json > "$RUNNER_TEMP/schema-check-report.md"
139+
cat >> "$RUNNER_TEMP/schema-check-report.md" <<'EOF'
140+
141+
Maintainer note: consult the [runbook](https://github.com/pulumi/platform-providers-team/blob/main/playbooks/tf-provider-updating.md) for dealing with any breaking changes.
142+
143+
<!-- "schemaCheck" -->
144+
EOF
144145
- if: inputs.acceptance_fanout == false && inputs.is_pr && inputs.is_automated == false && github.actor != 'dependabot[bot]'
145146
name: Find schema check comment
146147
id: find-schema-check-comment
@@ -157,13 +158,7 @@ jobs:
157158
issue-number: ${{ github.event.pull_request.number }}
158159
comment-id: ${{ steps.find-schema-check-comment.outputs.comment-id }}
159160
edit-mode: replace
160-
body: >+
161-
${{ env.SCHEMA_CHANGES }}
162-
163-
164-
Maintainer note: consult the [runbook](https://github.com/pulumi/platform-providers-team/blob/main/playbooks/tf-provider-updating.md) for dealing with any breaking changes.
165-
166-
<!-- "schemaCheck" -->
161+
body-path: ${{ runner.temp }}/schema-check-report.md
167162

168163
- name: Upload artifacts
169164
uses: ./.github/actions/upload-prerequisites

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ jobs:
166166
# only saving the cache in the prerequisites job
167167
cache_save: false
168168
- name: Setup Node
169-
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
169+
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
170170
with:
171171
# we don't set node-version because we install with mise.
172172
# this step is needed to setup npm auth

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

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,13 @@ jobs:
189189
env:
190190
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
191191
run: |
192-
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
193-
{
194-
echo "SCHEMA_CHANGES<<$EOF";
195-
schema-tools compare -r github://api.github.com/pulumi -p alicloud -o "${{ github.event.pull_request.base.ref }}" -n --local-path=provider/cmd/pulumi-resource-alicloud/schema.json;
196-
echo "$EOF";
197-
} >> "$GITHUB_ENV"
192+
schema-tools compare -r github://api.github.com/pulumi -p alicloud -o "${{ github.event.pull_request.base.ref }}" -n --local-path=provider/cmd/pulumi-resource-alicloud/schema.json > "$RUNNER_TEMP/schema-check-report.md"
193+
cat >> "$RUNNER_TEMP/schema-check-report.md" <<'EOF'
194+
195+
Maintainer note: consult the [runbook](https://github.com/pulumi/platform-providers-team/blob/main/playbooks/tf-provider-updating.md) for dealing with any breaking changes.
196+
197+
<!-- "schemaCheck" -->
198+
EOF
198199
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]'
199200
name: Find schema check comment
200201
id: find-schema-check-comment
@@ -211,13 +212,7 @@ jobs:
211212
issue-number: ${{ github.event.pull_request.number }}
212213
comment-id: ${{ steps.find-schema-check-comment.outputs.comment-id }}
213214
edit-mode: replace
214-
body: >+
215-
${{ env.SCHEMA_CHANGES }}
216-
217-
218-
Maintainer note: consult the [runbook](https://github.com/pulumi/platform-providers-team/blob/main/playbooks/tf-provider-updating.md) for dealing with any breaking changes.
219-
220-
<!-- "schemaCheck" -->
215+
body-path: ${{ runner.temp }}/schema-check-report.md
221216

222217
build_sdk:
223218
if: github.event_name == 'repository_dispatch' ||

0 commit comments

Comments
 (0)