From 8880c9f78e70d3807911121bd766be0732a2df5a Mon Sep 17 00:00:00 2001 From: Shenoy Pratik Date: Tue, 15 Aug 2023 23:42:06 -0700 Subject: [PATCH] Update backport CI, add PR merged condition Signed-off-by: Shenoy Pratik --- .github/workflows/backport.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 8ec790bfa0..6472a968d8 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -7,6 +7,7 @@ on: jobs: backport: + if: github.event.pull_request.merged == true runs-on: ubuntu-latest permissions: contents: write @@ -15,15 +16,15 @@ jobs: steps: - name: GitHub App token id: github_app_token - uses: tibdex/github-app-token@v1.7.0 + uses: tibdex/github-app-token@v1.5.0 with: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.APP_PRIVATE_KEY }} installation_id: 22958780 - name: Backport - uses: VachaShah/backport@v2.1.0 + uses: VachaShah/backport@v2.2.0 with: github_token: ${{ steps.github_app_token.outputs.token }} head_template: backport/backport-<%= number %>-to-<%= base %> - files_to_skip: 'CHANGELOG.md' + failure_labels: backport-failed