diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index 68c6f4a105..c821ef2079 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -33,9 +33,24 @@ jobs: secrets: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - leave-comment: + get-build: + name: Get your dev build! runs-on: ubuntu-latest needs: [create-dev-hash, release-ionic] + steps: + - run: echo ${{ needs.create-dev-hash.outputs.dev-hash }} + + get-pr: + runs-on: ubuntu-latest + steps: + - uses: 8BitJonny/gh-get-current-pr@2.2.0 + id: PR + + - run: echo "Your PR number is ${{ steps.PR.outputs.number }} and its JSON is ${{ steps.PR.outputs.pr }}" + + leave-comment: + runs-on: ubuntu-latest + needs: [create-dev-hash, release-ionic, get-pr] steps: - name: Checkout uses: actions/checkout@v3 @@ -45,10 +60,4 @@ jobs: with: message: | To test the dev build, update your Ionic packages to version ${{ needs.create-dev-hash.outputs.dev-hash }} - - get-build: - name: Get your dev build! - runs-on: ubuntu-latest - needs: [create-dev-hash, release-ionic] - steps: - - run: echo ${{ needs.create-dev-hash.outputs.dev-hash }} + pr_number: steps.get-pr.outputs.number