forked from ravendb/ravendb
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (22 loc) · 1.05 KB
/
versionLabel.yml
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
name: version
on:
pull_request_target
jobs:
labels:
name: Label
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Parse Label
run: |
$label="${{ github.event.pull_request.base.ref }}".split("/")[-1]
echo "newLabel=$label" >> $env:GITHUB_ENV
- name: Set Label
env:
githubOwner: ${{ github.event.pull_request.base.repo.owner.login }}
repoName: ${{ github.event.repository.name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPlus_ReadyToRunExcludeList: 'System.Security.Cryptography.X509Certificates'
Raven_Enable_Per_Test_Logging: 'true'
if: contains(github.event.pull_request.labels.*.name, env.newLabel) == false && (startsWith( github.event.pull_request.base.ref, 'v' ) || startsWith( github.event.pull_request.base.ref, 'feature' ))
run: ./scripts/githubActions/set_github_label.ps1 -owner ${{env.githubOwner}} -repo ${{env.repoName}} -pullRequestId ${{ github.event.pull_request.number }} -label ${{env.newLabel}}