Update test.yml #9
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: Read Secret, Create File, and Verify (No Secret Printing) | |
on: | |
push: | |
jobs: | |
verify_file: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get Pull Request Title | |
id: get_title | |
run: | | |
echo "PR_TITLE=$(github.event.pull_request.title)" >> $GITHUB_OUTPUT | |
- name: Save Title to File (optional) | |
run: | | |
mkdir -p output # Create output directory if needed | |
echo "${{ steps.get_title.outputs.PR_TITLE }}" > output/pr_title.txt | |
- name: Read non-secret file content | |
run: | | |
cat output/pr_title.txt |