Skip to content

Review real action

Review real action #20

Workflow file for this run

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"