Skip to content

Commit

Permalink
chore: add PR URL to outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed Jul 28, 2023
1 parent 6bf7046 commit 1b1be8e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/registry-docs-pr-based.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ on:
GH_PR_TOKEN:
description: "GitHub token to create PRs with"
required: true
outputs:
prUrl:
description: "URL of the created PR"
value: ${{ jobs.cdktfDocsCreatePR.outputs.prUrl }}

name: CDKTF Provider Documentation
jobs:
Expand Down Expand Up @@ -182,13 +186,16 @@ jobs:
needs:
- cdktfDocsConvert
runs-on: ubuntu-latest
outputs:
prUrl: ${{ steps.cpr.outputs.pull-request-url }}
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
repository: ${{ inputs.repository }}
ref: d-cdktf-docs-${{ github.run_id }}-${{ github.run_number }}

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2
with:
token: ${{ secrets.GH_PR_TOKEN }}
Expand Down

0 comments on commit 1b1be8e

Please sign in to comment.