Get rid of feature-testing useless comments (#2219)
Co-authored-by: Azat Safin <azsafin@provectus.com>
This commit is contained in:
parent
3e5093d101
commit
46bcbb3436
1 changed files with 2 additions and 10 deletions
12
.github/workflows/branch-remove.yml
vendored
12
.github/workflows/branch-remove.yml
vendored
|
@ -5,25 +5,17 @@ on:
|
||||||
types: ['unlabeled', 'closed']
|
types: ['unlabeled', 'closed']
|
||||||
jobs:
|
jobs:
|
||||||
remove:
|
remove:
|
||||||
if: ${{ github.event.label.name == 'status/feature_testing' || github.event.label.name == 'status/feature_testing_public' || github.event.action == 'closed'}}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ (github.event.label.name == 'status/feature_testing' || github.event.label.name == 'status/feature_testing_public') || (github.event.action == 'closed' && (contains(github.event.pull_request.labels.*.name, 'status/feature_testing') || contains(github.event.pull_request.labels.*.name, 'status/feature_testing_public'))) }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: get branch name
|
|
||||||
id: extract_branch
|
|
||||||
run: |
|
|
||||||
tag='pr${{ github.event.pull_request.number }}'
|
|
||||||
echo ::set-output name=tag::${tag}
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- name: clone
|
- name: clone
|
||||||
run: |
|
run: |
|
||||||
git clone https://kafka-ui-infra:${{ secrets.KAFKA_UI_INFRA_TOKEN }}@gitlab.provectus.com/provectus-internals/kafka-ui-infra.git
|
git clone https://kafka-ui-infra:${{ secrets.KAFKA_UI_INFRA_TOKEN }}@gitlab.provectus.com/provectus-internals/kafka-ui-infra.git
|
||||||
- name: remove env
|
- name: remove env
|
||||||
run: |
|
run: |
|
||||||
cd kafka-ui-infra/aws-infrastructure4eks/argocd/scripts
|
cd kafka-ui-infra/aws-infrastructure4eks/argocd/scripts
|
||||||
echo "Branch:${{ steps.extract_branch.outputs.tag }}"
|
./delete-env.sh pr${{ github.event.pull_request.number }} || true
|
||||||
./delete-env.sh ${{ steps.extract_branch.outputs.tag }} || true
|
|
||||||
git config --global user.email "kafka-ui-infra@provectus.com"
|
git config --global user.email "kafka-ui-infra@provectus.com"
|
||||||
git config --global user.name "kafka-ui-infra"
|
git config --global user.name "kafka-ui-infra"
|
||||||
git add ../kafka-ui-from-branch/
|
git add ../kafka-ui-from-branch/
|
||||||
|
|
Loading…
Add table
Reference in a new issue