From 7a9bf1feed5b0972312b3fb09d7a4c0063ddfeeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Wed, 18 Jan 2023 16:32:40 +0100 Subject: [PATCH] chore: simplify pr update workflow (#6024) --- .github/workflows/pr-update.yaml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pr-update.yaml b/.github/workflows/pr-update.yaml index 4db8aeaacd..ac68de8345 100644 --- a/.github/workflows/pr-update.yaml +++ b/.github/workflows/pr-update.yaml @@ -7,27 +7,20 @@ on: - 'release-*' jobs: - checksecret: - runs-on: ubuntu-latest - outputs: - result: ${{ steps.check.outputs.result }} - steps: - - name: Checkout - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - - name: Check secret - id: check - uses: ./.github/actions/is-defined - with: - value: ${{ secrets.PR_UPDATE_TOKEN }} - autoupdate: - needs: [checksecret] - if: needs.checksecret.outputs.result == 'true' permissions: pull-requests: write runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 + - name: Check secret + id: checksecret + uses: ./.github/actions/is-defined + with: + value: ${{ secrets.PR_UPDATE_TOKEN }} - name: Automatically update PR + if: steps.checksecret.outputs.result == 'true' uses: adRise/update-pr-branch@437fab6e0ac7d2a668f2c479f64225edd7f303fd # v0.6.0 with: token: ${{ secrets.PR_UPDATE_TOKEN }}