Skip to content

Commit

Permalink
moving git actions in peter-evans/create-pull-request (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
apham0001 authored Nov 4, 2024
1 parent d3f740a commit a037954
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/dispatch-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,14 @@ jobs:
# Update charon and charon-cluster values.yaml
sed -i -E "/tag:/s/v\.?[0-9]+\.[0-9]+\.[0-9]+[a-zA-Z0-9\-]*/v${TAG_NAME}/" charts/charon-cluster/values.yaml charts/charon/values.yaml
# Commit and push changes
git checkout -b update-version-${{ env.TAG_NAME }}
git add .
git commit -m "Update version to ${TAG_NAME}"
git push origin update-version-${{ env.TAG_NAME }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
base: main
head: update-version-${{ env.TAG_NAME }}
branch: update-version-${{ env.TAG_NAME }}
title: "Update version to ${{ env.TAG_NAME }}"
body: "Automatically generated PR to update version to ${{ env.TAG_NAME }}"
commit-message: "Update version to ${{ env.TAG_NAME }}"
author-name: "obol-platform"
author-email: "[email protected]"

0 comments on commit a037954

Please sign in to comment.