From ef381ef84eb72c368fe8f2b1035d75846c012234 Mon Sep 17 00:00:00 2001 From: Florian Stadler Date: Tue, 4 Jun 2024 14:57:45 +0200 Subject: [PATCH] Revert "Use action for creating PR" This reverts commit fd16714589f7660aeff91bb967a355f886cad2c3. --- .github/workflows/weekly-pulumi-update.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/weekly-pulumi-update.yml b/.github/workflows/weekly-pulumi-update.yml index 1b30cb14c..89a29df4b 100644 --- a/.github/workflows/weekly-pulumi-update.yml +++ b/.github/workflows/weekly-pulumi-update.yml @@ -87,12 +87,7 @@ jobs: git push origin update-pulumi/$PULUMI_VERSION-${{ github.run_id }}-${{ github.run_number }} - name: pull-request if: steps.gomod.outputs.changes != 0 - uses: peter-evans/create-pull-request@v6 - with: - author: Pulumi Bot - body: "Upgrading pulumi/pkg and pulumi/sdk to version ${{ steps.gomod.outputs.pulumi_version }}." - branch: "update-pulumi/${{ steps.gomod.outputs.pulumi_version }}-${{ github.run_number }}" - committer: Pulumi Bot - commit-message: "Update pulumi/pulumi version to ${{ steps.gomod.outputs.pulumi_version }}" - title: "Update pulumi/pulumi version to ${{ steps.gomod.outputs.pulumi_version }}" + run: | + gh_pr_up() { gh pr create $* || gh pr edit $* } + gh_pr_up --title "Update pulumi/pulumi version to $PULUMI_VERSION" name: weekly-pulumi-update