Skip to content

Commit da30173

Browse files
authored
Update GitHub Actions workflows. (#483)
This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit e5045b810db34310235bbe1a83d3c3758995e790.
1 parent a1d63cf commit da30173

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt
22

3-
name: build
3+
name: main # For consistency with bridged providers.
44
on:
55
push:
66
branches:
@@ -346,6 +346,25 @@ jobs:
346346
author_name: Failure while building SDKs
347347
fields: repo,commit,author,action
348348
status: ${{ job.status }}
349+
350+
tag_release_if_labeled_needs_release:
351+
name: Tag release if labeled as needs-release
352+
needs: publish
353+
runs-on: ubuntu-latest
354+
steps:
355+
- name: check if this commit needs release
356+
if: ${{ env.RELEASE_BOT_ENDPOINT != '' }}
357+
uses: pulumi/action-release-by-pr-label@main
358+
with:
359+
command: "release-if-needed"
360+
repo: ${{ github.repository }}
361+
commit: ${{ github.sha }}
362+
slack_channel: ${{ secrets.RELEASE_OPS_SLACK_CHANNEL }}
363+
env:
364+
RELEASE_BOT_ENDPOINT: ${{ secrets.RELEASE_BOT_ENDPOINT }}
365+
RELEASE_BOT_KEY: ${{ secrets.RELEASE_BOT_KEY }}
366+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
367+
349368
test:
350369
runs-on: pulumi-ubuntu-8core
351370
needs:

0 commit comments

Comments
 (0)