Skip to content

Commit

Permalink
Merge pull request #877 from aquasecurity/change-token
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsalame1 authored Dec 26, 2024
2 parents 93f90af + 40b38b9 commit ba1c2c0
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 ba1c2c0

Please sign in to comment.