We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f1e42f commit 3efec18Copy full SHA for 3efec18
.github/workflows/remove-label-on-update.yml
.github/workflows/run-tests.yml
@@ -7,8 +7,27 @@ on:
7
- cron: '0 0 * * *'
8
9
jobs:
10
+ remove_label:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Remove safe-to-test label
14
+ uses: actions/github-script@v5
15
+ with:
16
+ github-token: ${{secrets.GITHUB_TOKEN}}
17
+ script: |
18
+ const issue_number = context.issue.number;
19
+ const repository = context.repo.repo;
20
+ const owner = context.repo.owner;
21
+ await github.rest.issues.removeLabel({
22
+ owner,
23
+ repo: repository,
24
+ issue_number,
25
+ name: 'safe-to-test'
26
+ });
27
+
28
access_check:
29
runs-on: ubuntu-latest
30
+ needs: remove_label
31
steps:
32
- name: Check user permissions
33
if: ${{ ! contains(github.event.pull_request.labels.*.name, 'safe-to-test') }}
0 commit comments