Skip to content

Update test.yml

Update test.yml #15

Workflow file for this run

name: Read Secret, Create File, and Verify (No Secret Printing)
on:
push:
env:
PR_TITLE: ${{ github.event.pull_request.title }} # this is returning empty
PR_DESCRIPTION: ${{ github.event.head_commit.message }}
jobs:
verify_file:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get Pull Request Number
run: echo "PULL_NUMBER=$(echo "$GITHUB_REF" | awk -F / '{print $3}')" >> $GITHUB_ENV
shell: bash
- name: Verify file creation (without revealing content)
run: |
echo "PR title is: $PR_TITLE"
echo "PR description is: $PR_DESCRIPTION"