Skip to content

Commit 6e728fc

Browse files
committed
fix layout
Signed-off-by: Anas Nashif <[email protected]>
1 parent a587b90 commit 6e728fc

File tree

2 files changed

+61
-61
lines changed

2 files changed

+61
-61
lines changed

.github/workflows/assigner-workflow.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@ jobs:
2626
script: |
2727
var artifacts = await github.actions.listWorkflowRunArtifacts({
2828
owner: context.repo.owner,
29-
repo: context.repo.repo,
30-
run_id: ${{github.event.workflow_run.id }},
31-
});
32-
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
33-
return artifact.name == "pr"
34-
})[0];
35-
var download = await github.actions.downloadArtifact({
36-
owner: context.repo.owner,
37-
repo: context.repo.repo,
38-
artifact_id: matchArtifact.id,
39-
archive_format: 'zip',
40-
});
41-
var fs = require('fs');
42-
fs.writeFileSync('${{github.workspace}}/pr.zip', Buffer.from(download.data));
29+
repo: context.repo.repo,
30+
run_id: ${{github.event.workflow_run.id }},
31+
});
32+
var matchArtifact = artifacts.data.artifacts.filter((artifact) => {
33+
return artifact.name == "pr"
34+
})[0];
35+
var download = await github.actions.downloadArtifact({
36+
owner: context.repo.owner,
37+
repo: context.repo.repo,
38+
artifact_id: matchArtifact.id,
39+
archive_format: 'zip',
40+
});
41+
var fs = require('fs');
42+
fs.writeFileSync('${{github.workspace}}/pr.zip', Buffer.from(download.data));
4343
- run: unzip pr.zip
4444

4545
- name: Check out source code
@@ -68,14 +68,14 @@ jobs:
6868
FLAGS+=" -r ${{ github.event.repository.name }}"
6969
FLAGS+=" -M MAINTAINERS.yml"
7070
if [ "${{ github.event_name }}" = "pull_request_target" ]; then
71-
FLAGS+=" -P ${{ github.event.pull_request.number }} -c origin/${{ github.base_ref }}.."
71+
FLAGS+=" -P ${{ github.event.pull_request.number }} -c origin/${{ github.base_ref }}.."
7272
elif [ "${{ github.event_name }}" = "issues" ]; then
73-
FLAGS+=" -I ${{ github.event.issue.number }}"
73+
FLAGS+=" -I ${{ github.event.issue.number }}"
7474
elif [ "${{ github.event_name }}" = "schedule" ]; then
75-
FLAGS+=" --modules"
75+
FLAGS+=" --modules"
7676
else
77-
echo "Unknown event: ${{ github.event_name }}"
78-
exit 1
77+
echo "Unknown event: ${{ github.event_name }}"
78+
exit 1
7979
fi
8080
8181
python3 scripts/set_assignees.py $FLAGS

.github/workflows/assigner.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)