aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authortarasov-egor <jorres.tarasov@gmail.com>2023-05-14 17:47:06 +0000
committertarasov-egor <jorres.tarasov@ydb.tech>2023-05-14 20:47:06 +0300
commit6006e804478c44582f3ce702e7c6a33328426669 (patch)
tree473c6e3e4b549018ce75cd4091cf076066ffc7fd /.github/workflows
parent0da8bd43f7eadf9090867e4fbc6778e57a787774 (diff)
downloadydb-6006e804478c44582f3ce702e7c6a33328426669.tar.gz
"Fix nightly builds after external contribution rework"
"Fix nightly builds after external contribution rework" Pull Request resolved: #206
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build_and_test_ondemand.yml21
-rw-r--r--.github/workflows/pr_check.yml21
2 files changed, 21 insertions, 21 deletions
diff --git a/.github/workflows/build_and_test_ondemand.yml b/.github/workflows/build_and_test_ondemand.yml
index 4daea429c9..eb5e54923e 100644
--- a/.github/workflows/build_and_test_ondemand.yml
+++ b/.github/workflows/build_and_test_ondemand.yml
@@ -52,27 +52,6 @@ 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
diff --git a/.github/workflows/pr_check.yml b/.github/workflows/pr_check.yml
index 6ddffa59c8..cbdd63acc8 100644
--- a/.github/workflows/pr_check.yml
+++ b/.github/workflows/pr_check.yml
@@ -58,6 +58,27 @@ jobs:
repo: context.repo.repo,
body: 'Hi! Thank you for contributing!\nThe tests on this PR will run after a maintainer adds an `ok-to-test` label to this PR manually. Thank you for your patience!'
});
+ - 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);
+ }
build_and_test:
needs:
- check-running-allowed