feat: run commands on new branch

This commit is contained in:
losuler
2022-05-08 02:09:26 +10:00
parent ada7eb5553
commit 96fc220028

View File

@ -20,6 +20,7 @@ jobs:
- name: Update version number - name: Update version number
run: | run: |
git checkout -b add-new-release &&
#sed "s/PREV_RELEASE=.*/PREV_RELEASE=\"$(echo \"${{env.version}}\" | \ #sed "s/PREV_RELEASE=.*/PREV_RELEASE=\"$(echo \"${{env.version}}\" | \
sed "s/PREV_RELEASE=.*/PREV_RELEASE=\"$(echo 8.2 | \ sed "s/PREV_RELEASE=.*/PREV_RELEASE=\"$(echo 8.2 | \
awk '{print $1}')\"/" \ awk '{print $1}')\"/" \
@ -31,6 +32,7 @@ jobs:
#if: contains(steps.update.outputs.STATUS, '==') #if: contains(steps.update.outputs.STATUS, '==')
uses: repo-sync/pull-request@v2 uses: repo-sync/pull-request@v2
with: with:
source_branch: "add-new-release"
destination_branch: "master" destination_branch: "master"
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
pr_allow_empty: true pr_allow_empty: true