@@ -28,54 +28,54 @@ jobs:
2828 issues : write # to add assignees to issues
2929
3030 steps :
31- - name: Check out source code
32- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33- with:
34- fetch-depth: 0
35- persist-credentials: false
31+ - name : Check out source code
32+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33+ with :
34+ fetch-depth : 0
35+ persist-credentials : false
3636
37- - name: Set up Python
38- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
39- with:
40- python-version: 3.12
41- cache: pip
42- cache-dependency-path: scripts/requirements-actions.txt
37+ - name : Set up Python
38+ uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
39+ with :
40+ python-version : 3.12
41+ cache : pip
42+ cache-dependency-path : scripts/requirements-actions.txt
4343
44- - name: Install Python packages
45- run: |
46- pip install -r scripts/requirements-actions.txt --require-hashes
44+ - name : Install Python packages
45+ run : |
46+ pip install -r scripts/requirements-actions.txt --require-hashes
4747
48- - name: Run assignment script
49- env:
50- GITHUB_TOKEN: ${{ secrets.ZB_PR_ASSIGNER_GITHUB_TOKEN }}
51- run: |
52- FLAGS="-v"
53- FLAGS+=" -o ${{ github.event.repository.owner.login }}"
54- FLAGS+=" -r ${{ github.event.repository.name }}"
55- FLAGS+=" -M MAINTAINERS.yml"
56- if [ "${{ github.event_name }}" = "pull_request" ]; then
48+ - name : Run assignment script
49+ env :
50+ GITHUB_TOKEN : ${{ secrets.ZB_PR_ASSIGNER_GITHUB_TOKEN }}
51+ run : |
52+ FLAGS="-v"
53+ FLAGS+=" -o ${{ github.event.repository.owner.login }}"
54+ FLAGS+=" -r ${{ github.event.repository.name }}"
55+ FLAGS+=" -M MAINTAINERS.yml"
56+ if [ "${{ github.event_name }}" = "pull_request" ]; then
5757 FLAGS+=" -P ${{ github.event.pull_request.number }} -c origin/${{ github.base_ref }}.."
58- elif [ "${{ github.event_name }}" = "issues" ]; then
58+ elif [ "${{ github.event_name }}" = "issues" ]; then
5959 FLAGS+=" -I ${{ github.event.issue.number }}"
60- elif [ "${{ github.event_name }}" = "schedule" ]; then
60+ elif [ "${{ github.event_name }}" = "schedule" ]; then
6161 FLAGS+=" --modules"
62- else
63- echo "Unknown event: ${{ github.event_name }}"
64- exit 1
65- fi
62+ else
63+ echo "Unknown event: ${{ github.event_name }}"
64+ exit 1
65+ fi
6666
67- python3 scripts/set_assignees.py $FLAGS
67+ python3 scripts/set_assignees.py $FLAGS
6868
69- - name: Save PR number
70- if: >
71- github.event.workflow_run.event == 'pull_request'
72- run: |
73- mkdir -p ./pr
74- echo ${{ github.event.number }} > ./pr/NR
75- - uses: actions/upload-artifact@v2
76- if: >
77- github.event.workflow_run.event == 'pull_request'
78- with:
79- name: pr
80- path: pr/
69+ - name : Save PR number
70+ if : >
71+ github.event.workflow_run.event == 'pull_request'
72+ run : |
73+ mkdir -p ./pr
74+ echo ${{ github.event.number }} > ./pr/NR
75+ - uses : actions/upload-artifact@v2
76+ if : >
77+ github.event.workflow_run.event == 'pull_request'
78+ with :
79+ name : pr
80+ path : pr/
8181
0 commit comments