Skip to content

Commit

Permalink
ci: create pr on new releases
Browse files Browse the repository at this point in the history
  • Loading branch information
extraymond committed Mar 28, 2024
1 parent ce4e0f1 commit 064bc93
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@ jobs:
fi
- name: Update snapcraft.yaml
if: ${{ env.new_version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "Updating snapcraft.yaml to ${{ env.new_version }}"
# Use sed instead of yq, because yq deletes empty lines
sed -i "s/^version: .*/version: '${{ env.new_version }}'/" snap/snapcraft.yaml
- name: Commit changes
if: ${{ env.new_version }}
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update Zotero-Snap to ${{ env.new_version }}
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 064bc93

Please sign in to comment.