From cdc342157295bbec580cc6056d854369f2172cd3 Mon Sep 17 00:00:00 2001 From: mthcht Date: Thu, 13 Jun 2024 11:42:48 +0200 Subject: [PATCH] Update check-updates.yml --- .github/workflows/check-updates.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-updates.yml b/.github/workflows/check-updates.yml index 6d9eb025a..23154ce0d 100644 --- a/.github/workflows/check-updates.yml +++ b/.github/workflows/check-updates.yml @@ -28,7 +28,9 @@ jobs: run: | if [ -n "${{ env.branch_exists }}" ]; then UPDATES=$(git log HEAD..upstream/master --oneline || echo '') - echo "updates=$UPDATES" >> $GITHUB_ENV + echo "updates<> $GITHUB_ENV + echo "$UPDATES" >> $GITHUB_ENV + echo "EOF" >> $GITHUB_ENV else echo "updates=" >> $GITHUB_ENV fi @@ -45,7 +47,7 @@ jobs: echo "No new updates found." >> updates_log.txt fi else - echo "Upstream branch 'main' does not exist." >> updates_log.txt + echo "Upstream branch 'master' does not exist." >> updates_log.txt fi echo "---" >> updates_log.txt @@ -55,4 +57,4 @@ jobs: git config --global user.email 'github-actions[bot]@users.noreply.github.com' git add updates_log.txt git commit -m 'Update log with new updates' - git push origin master + git push origin HEAD:${{ github.ref_name }}