Review real action #21
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: Review real action | |
on: | |
workflow_run: | |
workflows: | |
- Review-Trigger | |
types: | |
- completed | |
jobs: | |
rerun: | |
runs-on: ubuntu-latest | |
name: Rerun Desired Action | |
steps: | |
- name: Extract content of artifact | |
id: number | |
uses: Bullrich/extract-text-from-artifact@main | |
with: | |
artifact-name: pr_number | |
- run: echo "The PR that triggered the workflow is $NUMBER" | |
env: | |
NUMBER: ${{ steps.number.outputs.content }} | |
- run: cat "./pr_number" | |
- name: run desired action | |
uses: paritytech-stg/workflow-trigger-test@main | |
id: rerun-desired-action | |
with: | |
# needs write access to the repo | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NAME: ${{ secrets.NAME }} | |
WORKFLOW-ID: ${{github.event.workflow_run.id}} | |
# the event type you wish to rerun | |
EVENT-TYPE: "pull_request_target" | |
# the id of the workflow you're trying to re-run | |
ID-TO-RERUN: "6519819" |