Skip to content

Commit

Permalink
update create pr action
Browse files Browse the repository at this point in the history
  • Loading branch information
osipov-mit committed Dec 4, 2024
1 parent 169c273 commit 74efa49
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/renew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,21 @@ jobs:
node ./scripts/renew-config.js "${{ needs.check_release.outputs.version }}"
- name: New PR branch
id: new-branch
id: new_branch
run: |
NAME="$BRANCH_PREFIX-${{ needs.check_release.outputs.version }}"
echo "name=$NAME" >> $GITHUB_OUTPUT
- name: Create Pull Request if not exist
id: cpr
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v7
with:
add-paths: |
config/*
commit-message: add new vara config
branch: ${{ steps.new-branch.outputs.name }}
delete-branch: true
base: master
title: "[Automated] ${{ needs.check_release.outputs.version }}"
add-paths: |
config/*
body: |
"Automated renew configs for version ${{ needs.check_release.outputs.version }}"
draft: false
Expand Down

0 comments on commit 74efa49

Please sign in to comment.