File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -147,13 +147,14 @@ jobs:
147147 git config user.email "github-actions[bot]@users.noreply.github.com"
148148
149149 BRANCH="bump-native-${{ inputs.android_version }}-${{ inputs.ios_version }}"
150- git checkout -b "$BRANCH"
150+ git checkout -B "$BRANCH" # create or reset local branch to latest
151151 git add .
152- git commit -m "Bump native OneSignal SDKs; OneSignal-Android-SDK ${{ inputs.android_version }}, OneSignal-iOS-SDK ${{ inputs.ios_version }}"
153- git push origin "$BRANCH"
152+ git commit -m "Bump native OneSignal SDKs; OneSignal-Android-SDK ${{ inputs.android_version }}, OneSignal-iOS-SDK ${{ inputs.ios_version }}" || echo "No changes to commit"
153+ git push origin "$BRANCH" --force
154154
155155 gh pr create \
156156 --title "Bump native OneSignal SDKs; OneSignal-Android-SDK ${{ inputs.android_version }}, OneSignal-iOS-SDK ${{ inputs.ios_version }}" \
157157 --body "${{ steps.combined.outputs.combined }}" \
158158 --base main \
159- --label "native-sdk-bump"
159+ --label "native-sdk-bump" || echo "PR already exists, skipping creation"
160+
You can’t perform that action at this time.
0 commit comments