Skip to content

[DTRA] Bala/add sha to the github action versions #22

[DTRA] Bala/add sha to the github action versions

[DTRA] Bala/add sha to the github action versions #22

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/