diff --git a/.github/workflows/create-pr.yml b/.github/workflows/create-pr.yml index b0a5f86..541d4d8 100644 --- a/.github/workflows/create-pr.yml +++ b/.github/workflows/create-pr.yml @@ -9,6 +9,9 @@ jobs: build: name: Build runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write steps: - uses: actions/checkout@v3 - name: Update plugin Links @@ -16,14 +19,10 @@ jobs: sed -e "s/PLACEHOLDERVERSION/${{github.ref_name}}/g" .github/plugin_template.yaml > plugin.yaml - name: Create Pull Request id: cpr - uses: peter-evans/create-pull-request@v4 + uses: peter-evans/create-pull-request@v7 with: - token: ${{ secrets.PR_CREATION_TOKEN }} branch: "update-plugin-links-${{github.ref_name}}" title: "Update Plugin Artifacts Links for ${{github.ref_name}}" base: master add-paths: | plugin.yaml - - name: Send Teams message - run: | - curl -H "Content-Type: application/json" -d '{"text": "New pull request opened: '${{ steps.cpr.outputs.pull-request-url }}'"}' ${{ secrets.TEAMS_WEBHOOK_URL }}