Skip to content

Commit

Permalink
ci: create pr_branch on commit
Browse files Browse the repository at this point in the history
  • Loading branch information
extraymond committed Mar 29, 2024
1 parent 064bc93 commit e812c4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "Updating snapcraft.yaml to ${{ env.new_version }}"
git checkout -b "gh_action_pr_${{ env.new_version }}" -u origin
git push
# Use sed instead of yq, because yq deletes empty lines
sed -i "s/^version: .*/version: '${{ env.new_version }}'/" snap/snapcraft.yaml
gh pr create -B "gh_action_pr_${{ env.new_version }}" -H master --title "update zotero to ${{ env.new_version }}" --body "Created by Github action"

0 comments on commit e812c4b

Please sign in to comment.