From 65073b6c11ee6ecc537cde635e2d987c1d8537a7 Mon Sep 17 00:00:00 2001 From: Ringo De Smet Date: Tue, 26 Nov 2024 17:42:44 +0100 Subject: [PATCH] Pull in new workflow changes on a weekly basis --- .github/workflows/pull-workflow-changes.yml | 40 +++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/pull-workflow-changes.yml diff --git a/.github/workflows/pull-workflow-changes.yml b/.github/workflows/pull-workflow-changes.yml new file mode 100644 index 0000000..6b44e3a --- /dev/null +++ b/.github/workflows/pull-workflow-changes.yml @@ -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/create-pull-request@v3.12.0 + with: + author: pulumi-bot + 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 + labels: impact/no-changelog-required + title: Regenerate Github Actions workflows for pulumi-acme + token: ${{ env.GITHUB_TOKEN }}