[DTRA] Bala/add sha to the github action versions #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pre-generate preview link | |
permissions: | |
pull-requests: write | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
env: | |
HEAD_REF: ${{ github.head_ref }} | |
concurrency: | |
group: cloudflare-pages-verify-"$HEAD_REF" | |
cancel-in-progress: true | |
jobs: | |
upload_pr_info: | |
runs-on: Ubuntu-latest | |
steps: | |
- name: Retrieve PR information | |
env: | |
ISSUE_NUMBER: ${{ github.event.number }} | |
USERNAME: ${{ github.event.pull_request.user.login }} | |
run: | | |
mkdir -p ./pr | |
echo "$ISSUE_NUMBER" > ./pr/ISSUE_NUMBER | |
echo "$USERNAME" > ./pr/USERNAME | |
- name: Upload PR information to artifact | |
uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 | |
with: | |
name: "pr-${{github.run_id}}" | |
path: pr/ |