Skip to content

Commit 74d46f3

Browse files
committed
[internal] Update GitHub Actions workflow files
1 parent 6d23c3f commit 74d46f3

File tree

5 files changed

+3
-291
lines changed

5 files changed

+3
-291
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -113,54 +113,6 @@ jobs:
113113
sdk/nodejs/package.json
114114
sdk/python/pyproject.toml
115115
sdk/java/build.gradle
116-
- name: Commit SDK changes for Renovate
117-
if: failure() && steps.worktreeClean.outcome == 'failure' &&
118-
contains(github.actor, 'renovate') && github.event_name ==
119-
'pull_request'
120-
shell: bash
121-
run: >
122-
git diff --quiet -- sdk && echo "no changes to sdk" && exit
123-
124-
git config --global user.email "bot@pulumi.com"
125-
126-
git config --global user.name "pulumi-bot"
127-
128-
# Stash local changes and check out the PR's branch directly.
129-
130-
git stash
131-
132-
git fetch
133-
134-
git checkout "origin/$HEAD_REF"
135-
136-
137-
# Apply and add our changes, but don't commit any files we expect to
138-
139-
# always change due to versioning.
140-
141-
git stash pop
142-
143-
git add sdk
144-
145-
git reset sdk/python/*/pulumi-plugin.json \
146-
sdk/python/pyproject.toml \
147-
sdk/dotnet/pulumi-plugin.json \
148-
sdk/dotnet/*.*.csproj \
149-
sdk/dotnet/version.txt \
150-
sdk/go/*/pulumi-plugin.json \
151-
sdk/go/*/internal/pulumiUtilities.go \
152-
sdk/nodejs/package.json
153-
154-
git commit -m 'Commit SDK for Renovate'
155-
156-
157-
# Push with pulumi-bot credentials to trigger a re-run of the
158-
159-
# workflow. https://github.com/orgs/community/discussions/25702
160-
161-
git push https://pulumi-bot:${{ steps.esc-secrets.outputs.PULUMI_BOT_TOKEN }}@github.com/${{ github.repository }} "HEAD:$HEAD_REF"
162-
env:
163-
HEAD_REF: ${{ github.head_ref }}
164116
- run: git status --porcelain
165117
- name: Tar provider binaries
166118
run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{
@@ -262,54 +214,6 @@ jobs:
262214
sdk/nodejs/package.json
263215
sdk/python/pyproject.toml
264216
sdk/java/build.gradle
265-
- name: Commit SDK changes for Renovate
266-
if: failure() && steps.worktreeClean.outcome == 'failure' &&
267-
contains(github.actor, 'renovate') && github.event_name ==
268-
'pull_request'
269-
shell: bash
270-
run: >
271-
git diff --quiet -- sdk && echo "no changes to sdk" && exit
272-
273-
git config --global user.email "bot@pulumi.com"
274-
275-
git config --global user.name "pulumi-bot"
276-
277-
# Stash local changes and check out the PR's branch directly.
278-
279-
git stash
280-
281-
git fetch
282-
283-
git checkout "origin/$HEAD_REF"
284-
285-
286-
# Apply and add our changes, but don't commit any files we expect to
287-
288-
# always change due to versioning.
289-
290-
git stash pop
291-
292-
git add sdk
293-
294-
git reset sdk/python/*/pulumi-plugin.json \
295-
sdk/python/pyproject.toml \
296-
sdk/dotnet/pulumi-plugin.json \
297-
sdk/dotnet/*.*.csproj \
298-
sdk/dotnet/version.txt \
299-
sdk/go/*/pulumi-plugin.json \
300-
sdk/go/*/internal/pulumiUtilities.go \
301-
sdk/nodejs/package.json
302-
303-
git commit -m 'Commit SDK for Renovate'
304-
305-
306-
# Push with pulumi-bot credentials to trigger a re-run of the
307-
308-
# workflow. https://github.com/orgs/community/discussions/25702
309-
310-
git push https://pulumi-bot:${{ steps.esc-secrets.outputs.PULUMI_BOT_TOKEN }}@github.com/${{ github.repository }} "HEAD:$HEAD_REF"
311-
env:
312-
HEAD_REF: ${{ github.head_ref }}
313217
- run: git status --porcelain
314218
- name: Tar SDK folder
315219
run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} .

.github/workflows/prerelease.yml

Lines changed: 0 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -105,54 +105,6 @@ jobs:
105105
sdk/nodejs/package.json
106106
sdk/python/pyproject.toml
107107
sdk/java/build.gradle
108-
- name: Commit SDK changes for Renovate
109-
if: failure() && steps.worktreeClean.outcome == 'failure' &&
110-
contains(github.actor, 'renovate') && github.event_name ==
111-
'pull_request'
112-
shell: bash
113-
run: >
114-
git diff --quiet -- sdk && echo "no changes to sdk" && exit
115-
116-
git config --global user.email "bot@pulumi.com"
117-
118-
git config --global user.name "pulumi-bot"
119-
120-
# Stash local changes and check out the PR's branch directly.
121-
122-
git stash
123-
124-
git fetch
125-
126-
git checkout "origin/$HEAD_REF"
127-
128-
129-
# Apply and add our changes, but don't commit any files we expect to
130-
131-
# always change due to versioning.
132-
133-
git stash pop
134-
135-
git add sdk
136-
137-
git reset sdk/python/*/pulumi-plugin.json \
138-
sdk/python/pyproject.toml \
139-
sdk/dotnet/pulumi-plugin.json \
140-
sdk/dotnet/*.*.csproj \
141-
sdk/dotnet/version.txt \
142-
sdk/go/*/pulumi-plugin.json \
143-
sdk/go/*/internal/pulumiUtilities.go \
144-
sdk/nodejs/package.json
145-
146-
git commit -m 'Commit SDK for Renovate'
147-
148-
149-
# Push with pulumi-bot credentials to trigger a re-run of the
150-
151-
# workflow. https://github.com/orgs/community/discussions/25702
152-
153-
git push https://pulumi-bot:${{ steps.esc-secrets.outputs.PULUMI_BOT_TOKEN }}@github.com/${{ github.repository }} "HEAD:$HEAD_REF"
154-
env:
155-
HEAD_REF: ${{ github.head_ref }}
156108
- run: git status --porcelain
157109
- name: Tar provider binaries
158110
run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{
@@ -254,54 +206,6 @@ jobs:
254206
sdk/nodejs/package.json
255207
sdk/python/pyproject.toml
256208
sdk/java/build.gradle
257-
- name: Commit ${{ matrix.language }} SDK changes for Renovate
258-
if: failure() && steps.worktreeClean.outcome == 'failure' &&
259-
contains(github.actor, 'renovate') && github.event_name ==
260-
'pull_request'
261-
shell: bash
262-
run: >
263-
git diff --quiet -- sdk && echo "no changes to sdk" && exit
264-
265-
git config --global user.email "bot@pulumi.com"
266-
267-
git config --global user.name "pulumi-bot"
268-
269-
# Stash local changes and check out the PR's branch directly.
270-
271-
git stash
272-
273-
git fetch
274-
275-
git checkout "origin/$HEAD_REF"
276-
277-
278-
# Apply and add our changes, but don't commit any files we expect to
279-
280-
# always change due to versioning.
281-
282-
git stash pop
283-
284-
git add sdk
285-
286-
git reset sdk/python/*/pulumi-plugin.json \
287-
sdk/python/pyproject.toml \
288-
sdk/dotnet/pulumi-plugin.json \
289-
sdk/dotnet/*.*.csproj \
290-
sdk/dotnet/version.txt \
291-
sdk/go/*/pulumi-plugin.json \
292-
sdk/go/*/internal/pulumiUtilities.go \
293-
sdk/nodejs/package.json
294-
295-
git commit -m 'Commit ${{ matrix.language }} SDK for Renovate'
296-
297-
298-
# Push with pulumi-bot credentials to trigger a re-run of the
299-
300-
# workflow. https://github.com/orgs/community/discussions/25702
301-
302-
git push https://pulumi-bot:${{ steps.esc-secrets.outputs.PULUMI_BOT_TOKEN }}@github.com/${{ github.repository }} "HEAD:$HEAD_REF"
303-
env:
304-
HEAD_REF: ${{ github.head_ref }}
305209
- run: git status --porcelain
306210
- name: Tar SDK folder
307211
run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} .

.github/workflows/release.yml

Lines changed: 0 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -105,54 +105,6 @@ jobs:
105105
sdk/nodejs/package.json
106106
sdk/python/pyproject.toml
107107
sdk/java/build.gradle
108-
- name: Commit SDK changes for Renovate
109-
if: failure() && steps.worktreeClean.outcome == 'failure' &&
110-
contains(github.actor, 'renovate') && github.event_name ==
111-
'pull_request'
112-
shell: bash
113-
run: >
114-
git diff --quiet -- sdk && echo "no changes to sdk" && exit
115-
116-
git config --global user.email "bot@pulumi.com"
117-
118-
git config --global user.name "pulumi-bot"
119-
120-
# Stash local changes and check out the PR's branch directly.
121-
122-
git stash
123-
124-
git fetch
125-
126-
git checkout "origin/$HEAD_REF"
127-
128-
129-
# Apply and add our changes, but don't commit any files we expect to
130-
131-
# always change due to versioning.
132-
133-
git stash pop
134-
135-
git add sdk
136-
137-
git reset sdk/python/*/pulumi-plugin.json \
138-
sdk/python/pyproject.toml \
139-
sdk/dotnet/pulumi-plugin.json \
140-
sdk/dotnet/*.*.csproj \
141-
sdk/dotnet/version.txt \
142-
sdk/go/*/pulumi-plugin.json \
143-
sdk/go/*/internal/pulumiUtilities.go \
144-
sdk/nodejs/package.json
145-
146-
git commit -m 'Commit SDK for Renovate'
147-
148-
149-
# Push with pulumi-bot credentials to trigger a re-run of the
150-
151-
# workflow. https://github.com/orgs/community/discussions/25702
152-
153-
git push https://pulumi-bot:${{ steps.esc-secrets.outputs.PULUMI_BOT_TOKEN }}@github.com/${{ github.repository }} "HEAD:$HEAD_REF"
154-
env:
155-
HEAD_REF: ${{ github.head_ref }}
156108
- run: git status --porcelain
157109
- name: Tar provider binaries
158110
run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{
@@ -254,54 +206,6 @@ jobs:
254206
sdk/nodejs/package.json
255207
sdk/python/pyproject.toml
256208
sdk/java/build.gradle
257-
- name: Commit SDK changes for Renovate
258-
if: failure() && steps.worktreeClean.outcome == 'failure' &&
259-
contains(github.actor, 'renovate') && github.event_name ==
260-
'pull_request'
261-
shell: bash
262-
run: >
263-
git diff --quiet -- sdk && echo "no changes to sdk" && exit
264-
265-
git config --global user.email "bot@pulumi.com"
266-
267-
git config --global user.name "pulumi-bot"
268-
269-
# Stash local changes and check out the PR's branch directly.
270-
271-
git stash
272-
273-
git fetch
274-
275-
git checkout "origin/$HEAD_REF"
276-
277-
278-
# Apply and add our changes, but don't commit any files we expect to
279-
280-
# always change due to versioning.
281-
282-
git stash pop
283-
284-
git add sdk
285-
286-
git reset sdk/python/*/pulumi-plugin.json \
287-
sdk/python/pyproject.toml \
288-
sdk/dotnet/pulumi-plugin.json \
289-
sdk/dotnet/*.*.csproj \
290-
sdk/dotnet/version.txt \
291-
sdk/go/*/pulumi-plugin.json \
292-
sdk/go/*/internal/pulumiUtilities.go \
293-
sdk/nodejs/package.json
294-
295-
git commit -m 'Commit SDK for Renovate'
296-
297-
298-
# Push with pulumi-bot credentials to trigger a re-run of the
299-
300-
# workflow. https://github.com/orgs/community/discussions/25702
301-
302-
git push https://pulumi-bot:${{ steps.esc-secrets.outputs.PULUMI_BOT_TOKEN }}@github.com/${{ github.repository }} "HEAD:$HEAD_REF"
303-
env:
304-
HEAD_REF: ${{ github.head_ref }}
305209
- run: git status --porcelain
306210
- name: Tar SDK folder
307211
run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} .

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139
# the case of dependency bumps.
140140
continue-on-error: ${{ contains(github.actor, 'renovate') }}
141141
- name: Commit SDK changes for Renovate
142-
if: failure() && steps.worktreeClean.outcome == 'failure' &&
142+
if: steps.worktreeClean.outcome == 'failure' &&
143143
contains(github.actor, 'renovate') && github.event_name ==
144144
'pull_request'
145145
shell: bash
@@ -300,8 +300,9 @@ jobs:
300300
sdk/nodejs/package.json
301301
sdk/python/pyproject.toml
302302
sdk/java/build.gradle
303+
continue-on-error: ${{ contains(github.actor, 'renovate') }}
303304
- name: Commit SDK changes for Renovate
304-
if: failure() && steps.worktreeClean.outcome == 'failure' &&
305+
if: steps.worktreeClean.outcome == 'failure' &&
305306
contains(github.actor, 'renovate') && github.event_name ==
306307
'pull_request'
307308
shell: bash

.goreleaser.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt
2-
32
project_name: pulumi-aws-native
43
before:
54
hooks:

0 commit comments

Comments
 (0)