25 - Artifacts between workflows 2 #175
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: "25 - Artifacts between workflows 2" | |
on: | |
workflow_run: | |
workflows: ['25 - Artifacts between workflows 1'] | |
types: | |
- completed | |
jobs: | |
job1: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download workflow artifact | |
uses: actions/[email protected] | |
with: | |
github-token: ${{ secrets.ACCESS_TOKEN }} | |
name: pr_num | |
path: ./pr_num | |
run-id: ${{ github.event.workflow_run.id }} | |
- name: Read the pr_num file | |
id: pr_num_reader | |
uses: juliangruber/[email protected] | |
with: | |
path: ./pr_num/pr_num.txt | |
- run: echo Original PR number is ${{ steps.pr_num_reader.outputs.content }} |