diff options
author | tarasov-egor <jorres.tarasov@gmail.com> | 2023-05-12 13:02:42 +0000 |
---|---|---|
committer | tarasov-egor <jorres.tarasov@ydb.tech> | 2023-05-12 16:02:42 +0300 |
commit | ca989b656060070f8add05eae3b6668ae0e06de4 (patch) | |
tree | 2a95cd252e594a959ecc8312be757290a7d144d3 /.github/workflows/build_and_test_ondemand.yml | |
parent | f0addd0481e841b7c4a4e0ad0d25ed85e4930508 (diff) | |
download | ydb-ca989b656060070f8add05eae3b6668ae0e06de4.tar.gz |
"External contributor pipeline"
"External contributor pipeline"
Pull Request resolved: #204
Diffstat (limited to '.github/workflows/build_and_test_ondemand.yml')
-rw-r--r-- | .github/workflows/build_and_test_ondemand.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/build_and_test_ondemand.yml b/.github/workflows/build_and_test_ondemand.yml index eb5e54923e..4daea429c9 100644 --- a/.github/workflows/build_and_test_ondemand.yml +++ b/.github/workflows/build_and_test_ondemand.yml @@ -52,6 +52,27 @@ jobs: core-fraction: 100 zone-id: ru-central1-b subnet-id: ${{secrets.YC_SUBNET}} + - name: cleanup-test-label + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} + script: | + const { owner, repo } = context.repo; + const prNumber = context.payload.pull_request.number; + const labelToRemove = 'ok-to-test'; + try { + const result = await github.rest.issues.removeLabel({ + owner, + repo, + issue_number: prNumber, + name: labelToRemove + }); + } catch(e) { + // ignore the 404 error that arises + // when the label did not exist for the + // organization member + console.log(e); + } prepare-vm: name: Prepare runner |