diff --git a/.github/workflows/test_build.yml b/.github/workflows/build-test.yml similarity index 100% rename from .github/workflows/test_build.yml rename to .github/workflows/build-test.yml diff --git a/.github/workflows/pr-description.yml b/.github/workflows/pr-description.yml new file mode 100644 index 0000000..efadbef --- /dev/null +++ b/.github/workflows/pr-description.yml @@ -0,0 +1,26 @@ +name: Update PR description + +on: + pull_request: + types: + - opened + - reopened + - synchronize + +jobs: + update-pr-description: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: octue/generate-pull-request-description@1.0.0.beta-2 + id: pr-description + with: + pull_request_url: ${{ github.event.pull_request.url }} + api_token: ${{ secrets.GITHUB_TOKEN }} + + - name: Update pull request body + uses: riskledger/update-pr-description@v2 + with: + body: ${{ steps.pr-description.outputs.pull_request_description }} + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file