generated from pulumi/pulumi-tf-provider-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull in new workflow changes on a weekly basis
- Loading branch information
Showing
1 changed file
with
40 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: "Pull Workflow Changes" | ||
|
||
on: | ||
schedule: | ||
# 3 AM UTC ~ 8 PM PDT / 7 PM PST every Tuesday. Time chosen to run during off hours. | ||
- cron: 0 3 * * TUE | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN || secrets.PULUMI_BOT_TOKEN || secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
upgrade_provider: | ||
name: pull-workflow-changes | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
# Persist credentials so pull-workflow-changes can push a new branch. | ||
persist-credentials: true | ||
- name: Regenerate the workflow files via https://github.com/pulumi/ci-mgmt | ||
run: | | ||
make ci-mgmt | ||
- name: Create PR (no linked issue) | ||
uses: peter-evans/[email protected] | ||
with: | ||
author: pulumi-bot <[email protected]> | ||
base: main | ||
body: This pull request was generated automatically by the resync-build workflow | ||
in this repository. | ||
branch: chore/resync-${{ github.run_id }} | ||
commit-message: Regenerate workflows for pulumi-acme | ||
committer: pulumi-bot <[email protected]> | ||
labels: impact/no-changelog-required | ||
title: Regenerate Github Actions workflows for pulumi-acme | ||
token: ${{ env.GITHUB_TOKEN }} |