This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
feat: deploy mutating webhook #51
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
# Copyright 2023 D2iQ, Inc. All rights reserved. | |
# SPDX-License-Identifier: Apache-2.0 | |
on: | |
pull_request_target: | |
types: | |
- labeled | |
- closed | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
backport: | |
name: Backport PR | |
runs-on: ubuntu-22.04 | |
if: | | |
github.event.pull_request.merged == true | |
&& contains(github.event.pull_request.labels.*.name, 'auto-backport') | |
&& ( | |
(github.event.action == 'labeled' && github.event.label.name == 'auto-backport') | |
|| (github.event.action == 'closed') | |
) | |
steps: | |
- name: Backport Action | |
uses: sqren/backport-github-action@v9.3.1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
auto_backport_label_prefix: backport-to- | |
- name: Backport log | |
if: always() | |
run: cat /home/runner/.backport/backport.log |