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
20
ci/prs.yml
20
ci/prs.yml
@ -20,11 +20,9 @@ jobs:
|
|||||||
|
|
||||||
- job: check_standard_change_label
|
- job: check_standard_change_label
|
||||||
dependsOn:
|
dependsOn:
|
||||||
- git_sha
|
- check_for_release
|
||||||
variables:
|
condition: and(eq(variables['Build.Reason'], 'PullRequest'),
|
||||||
fork_sha: $[ dependencies.git_sha.outputs['out.fork_point'] ]
|
eq(dependencies.check_for_release.outputs['out.is_release'], 'true'))
|
||||||
branch_sha: $[ dependencies.git_sha.outputs['out.branch'] ]
|
|
||||||
condition: eq(variables['Build.Reason'], 'PullRequest')
|
|
||||||
pool:
|
pool:
|
||||||
name: 'ubuntu_20_04'
|
name: 'ubuntu_20_04'
|
||||||
demands: assignment -equals default
|
demands: assignment -equals default
|
||||||
@ -33,17 +31,7 @@ jobs:
|
|||||||
- bash: |
|
- bash: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
has_changed () {
|
curl https://api.github.com/repos/digital-asset/daml/pulls/$PR -s | jq -r '.labels[].name' | grep -q '^Standard-Change$'
|
||||||
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:
|
env:
|
||||||
PR: $(System.PullRequest.PullRequestNumber)
|
PR: $(System.PullRequest.PullRequestNumber)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user