Get rid of feature-testing useless comments (#2219)

Co-authored-by: Azat Safin <azsafin@provectus.com>
This commit is contained in:
azatsafin 2022-06-29 12:40:50 +03:00 committed by GitHub
parent 3e5093d101
commit 46bcbb3436
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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/