Skip to content

Commit

Permalink
Update create-pr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsalame1 authored Dec 25, 2024
1 parent 93f90af commit 40b38b9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/create-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,20 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- name: Update plugin Links
run: |
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 }}

0 comments on commit 40b38b9

Please sign in to comment.