name: Reusable - Open issue on workflow failure on: workflow_call: jobs: open-issue: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Open issue env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh issue create --title "$GITHUB_WORKFLOW #$GITHUB_RUN_NUMBER failed" \ --label bug \ --body "See [$GITHUB_WORKFLOW #$GITHUB_RUN_NUMBER](https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID)."