diff --git a/.github/workflows/release-workflow.yml b/.github/workflows/release-workflow.yml index 6af539ac3ce..aee897867ba 100644 --- a/.github/workflows/release-workflow.yml +++ b/.github/workflows/release-workflow.yml @@ -48,6 +48,11 @@ jobs: token: ${{ env.GH_TOKEN }} fetch-depth: 0 + - name: Set up Git user + run: | + git config user.name "GitHub Action" + git config user.email "action@github.com" + # - name: 🟢 Setup node # id: setup-node # uses: actions/setup-node@v2 diff --git a/.github/workflows/scripts/release-test.sh b/.github/workflows/scripts/release-test.sh index f0f263af0fb..af266a30d74 100644 --- a/.github/workflows/scripts/release-test.sh +++ b/.github/workflows/scripts/release-test.sh @@ -25,6 +25,7 @@ merge_to_master() { } dummy_long_running_process() { + local releaseBranch="release-action-$GITHUB_RUN_NUMBER" local minutes=5 for (( i=1; i<=$minutes; i++ )) @@ -39,7 +40,7 @@ dummy_long_running_process() { git add "$dummyFileName" git commit -m "Add dummy file ($dummyFileName) during release process" echo "Committed $dummyFileName to the branch." - git push + git push --set-upstream origin "$releaseBranch" echo "Pushed the changes to the remote branch." }