Skip to content

Commit 177c009

Browse files
authored
Save and upload PR info for linter
Added steps to save and upload pull request information.
1 parent 61360ea commit 177c009

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/codebuild-pr-build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,17 @@ jobs:
8989
path: |
9090
~/.docker-images.tar
9191
key: docker-cache-${{ runner.os }}
92+
93+
- name: Save PR info for PR Linter
94+
if: github.event_name == 'pull_request'
95+
run: |
96+
mkdir -p ./pr
97+
echo ${{ github.event.pull_request.number }} > ./pr/pr_number
98+
echo ${{ github.event.pull_request.head.sha }} > ./pr/pr_sha
99+
100+
- name: Upload PR info artifact
101+
if: github.event_name == 'pull_request'
102+
uses: actions/upload-artifact@v5
103+
with:
104+
name: pr_info
105+
path: pr/

0 commit comments

Comments
 (0)