forked from jfrog/jfrog-client-go
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 868 Bytes
/
tests-on-pr.yml
File metadata and controls
34 lines (29 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Trigger Tests on PR
on:
pull_request_target:
types: [opened, synchronize]
branches:
- "master"
permissions:
issues: write
pull-requests: write
# Ensures that only the latest commit is running for each PR at a time.
# Ignores this rule for push events.
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}-label
cancel-in-progress: true
jobs:
add-safe-to-test-label:
runs-on: ubuntu-latest
steps:
- name: Wait a bit before adding label
run: sleep 5
- name: Checkout code
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Add 'safe to test' label
run: |
gh pr edit ${{ github.event.pull_request.number }} --add-label "safe to test"
env:
GH_TOKEN: ${{ secrets.CLI_ACTION_TOKEN }}