feature: rng primitive refactoring #773
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: Enforce Labels | |
on: | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}-${{ github.event.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
label_checker: | |
name: Please include labels on your pull request | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: test | |
run: | | |
LABELS=`gh api -H "Accept: application/vnd.github+json" /repos/uxlfoundation/oneDAL/issues/${{ github.event.pull_request.number }}/labels | jq '[.[].name]'` | |
echo $LABELS | |
if [[ $LABELS == "[]" ]] || [[ $LABELS == "[\"RFC\"]" ]]; then | |
echo "::error::No label set on the pull request" | |
exit 1 | |
fi | |
env: | |
GH_TOKEN: ${{ github.token }} |