mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-05 03:56:26 +03:00
[release] fix Standard-Change check (#18890)
This commit is contained in:
parent
a6b5aeb657
commit
f2593b913f
18
ci/prs.yml
18
ci/prs.yml
@ -20,11 +20,9 @@ jobs:
|
||||
|
||||
- job: check_standard_change_label
|
||||
dependsOn:
|
||||
- git_sha
|
||||
variables:
|
||||
fork_sha: $[ dependencies.git_sha.outputs['out.fork_point'] ]
|
||||
branch_sha: $[ dependencies.git_sha.outputs['out.branch'] ]
|
||||
condition: eq(variables['Build.Reason'], 'PullRequest')
|
||||
- check_for_release
|
||||
condition: and(eq(variables['Build.Reason'], 'PullRequest'),
|
||||
eq(dependencies.check_for_release.outputs['out.is_release'], 'true'))
|
||||
pool:
|
||||
name: 'ubuntu_20_04'
|
||||
demands: assignment -equals default
|
||||
@ -33,17 +31,7 @@ jobs:
|
||||
- bash: |
|
||||
set -euo pipefail
|
||||
|
||||
has_changed () {
|
||||
git diff $(fork_sha) $(branch_sha) --name-only | grep -q "^$1"
|
||||
}
|
||||
|
||||
fail_if_missing_std_change_label () {
|
||||
curl https://api.github.com/repos/digital-asset/daml/pulls/$PR -s | jq -r '.labels[].name' | grep -q '^Standard-Change$'
|
||||
}
|
||||
|
||||
if has_changed "LATEST"; then
|
||||
fail_if_missing_std_change_label
|
||||
fi
|
||||
env:
|
||||
PR: $(System.PullRequest.PullRequestNumber)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user