Skip to content

Commit 2d1dd6b

Browse files
Fix file path for the PR number in the PR labeler workflow (apple#1158)
## Type of Change - [x] Bug fix ## Motivation and Context The PR label applier GitHub workflow has been failing for a while. This PR fixes that by correcting the file path we look for when trying to read the PR number. See example failure here https://github.com/apple/container/actions/runs/21691766538/job/62552959972#step:4:23
1 parent 6451e07 commit 2d1dd6b

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

.github/workflows/pr-label-apply.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,11 @@ jobs:
3030
pattern: pr-metadata-*
3131
merge-multiple: false
3232
id: download-artifact
33-
34-
- name: Debug workspace contents
35-
run: |
36-
echo "Workspace contents:"
37-
ls -R
3833

3934
- name: Read PR number
4035
id: pr-number
4136
run: |
42-
METADATA_DIR=$(find . -type d -name "pr-metadata-*" 2>/dev/null | head -n 1)
43-
44-
if [ -z "$METADATA_DIR" ]; then
45-
echo "No metadata found"
46-
exit 1
47-
fi
48-
49-
PR_NUMBER=$(cat "${METADATA_DIR}/pr-number.txt")
37+
PR_NUMBER=$(cat "pr-number.txt")
5038
echo "number=${PR_NUMBER}" >> $GITHUB_OUTPUT
5139
echo "PR Number: ${PR_NUMBER}"
5240

0 commit comments

Comments
 (0)