[6.0] Append job attempt number to log artifact name to get rid of file exists failure on reattempts #8190
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: check-service-labels | |
permissions: | |
pull-requests: read | |
on: | |
pull_request: | |
types: [opened, edited, reopened, labeled, unlabeled, synchronize] | |
branches: | |
- 'release/**' | |
jobs: | |
check-labels: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check 'Servicing-approved' label | |
run: | | |
echo "Merging permission is enabled for servicing PRs when the `Servicing-approved` label is applied." | |
if [ "${{ contains(github.event.pull_request.labels.*.name, 'Servicing-approved') }}" = "true" ]; then | |
exit 0 | |
else | |
echo "::error:: 'Servicing-approved' label not applied to the PR yet. More information: https://github.com/dotnet/runtime/blob/main/docs/project/library-servicing.md#approval-process" | |
exit 1 | |
fi |