Skip to content

Commit 1e1f61a

Browse files
authored
[CI] PR-actions workflow: ensure error in cmd name can be reported (#6311)
1 parent 15d84cf commit 1e1f61a

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/pr-actions.yml

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: PR actions
2-
# cSpell:ignore esac htmltest refcache nvmrc
2+
# cSpell:ignore esac htmltest refcache nvmrc opentelemetrybot
33

44
on:
55
issue_comment:
@@ -15,7 +15,6 @@ jobs:
1515
pr-action:
1616
name: Run PR action
1717
runs-on: ubuntu-latest
18-
1918
if: |
2019
github.event.issue.pull_request &&
2120
startsWith(github.event.comment.body, '/fix:')
@@ -27,6 +26,13 @@ jobs:
2726
DEPTH: --depth 999 # submodule clone depth
2827

2928
steps:
29+
- name: Context info
30+
run: |
31+
echo $PR_NUM
32+
echo $COMMENT
33+
34+
- uses: actions/checkout@v4
35+
3036
- name: Extract action name
3137
id: extract_action_name
3238
run: |
@@ -40,13 +46,6 @@ jobs:
4046
fi
4147
echo "PR_ACTION=$PR_ACTION" >> "$GITHUB_ENV"
4248
43-
- name: Context info
44-
run: |
45-
echo $PR_NUM
46-
echo $COMMENT
47-
48-
- uses: actions/checkout@v4
49-
5049
- name: Write start comment
5150
run: |
5251
gh pr comment $PR_NUM -b "You triggered fix:${PR_ACTION} action run at $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"

0 commit comments

Comments
 (0)