diff --git a/src/ReinforcementLearningCore/.github/workflows/format_pr.yml b/src/ReinforcementLearningCore/.github/workflows/format_pr.yml index 33491c3a8..95fc1b0b8 100644 --- a/src/ReinforcementLearningCore/.github/workflows/format_pr.yml +++ b/src/ReinforcementLearningCore/.github/workflows/format_pr.yml @@ -13,15 +13,18 @@ jobs: julia -e 'using JuliaFormatter; format(".")' # https://github.com/marketplace/actions/create-pull-request + # https://github.com/peter-evans/create-pull-request#reference-example - name: Create Pull Request - uses: peter-evans/create-pull-request@v2 + id: cpr + uses: peter-evans/create-pull-request@v3 with: token: ${{ secrets.GITHUB_TOKEN }} commit-message: Format .jl files title: 'Automatic JuliaFormatter.jl run' branch: auto-juliaformatter-pr + delete-branch: true labels: formatting, automated pr, no changelog - name: Check outputs run: | - echo 'Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}' - echo 'Pull Request Number - ${{ steps.cpr.outputs.pr_number }}' + echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" + echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"