From df57e4bb7cbb1126b1c47ecd867f8c209195ad37 Mon Sep 17 00:00:00 2001 From: Ivan Tustanivskyi Date: Mon, 11 Aug 2025 10:28:24 +0300 Subject: [PATCH 1/5] Fix quotes for running powershell commands --- .github/workflows/updater.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/updater.yml b/.github/workflows/updater.yml index 85a21184..9d08a1db 100644 --- a/.github/workflows/updater.yml +++ b/.github/workflows/updater.yml @@ -128,7 +128,8 @@ jobs: RUNNER_TEMP: ${{ runner.temp }} INPUT_PATH: ${{ inputs.path }} INPUT_PATTERN: ${{ inputs.pattern }} - run: "$env:RUNNER_TEMP/ghwf/updater/scripts/update-dependency.ps1" -Path "$env:INPUT_PATH" -Pattern "$env:INPUT_PATTERN" + run: | + & "$env:RUNNER_TEMP/ghwf/updater/scripts/update-dependency.ps1" -Path "$env:INPUT_PATH" -Pattern "$env:INPUT_PATTERN" - name: Get the base repo info if: steps.target.outputs.latestTag != steps.target.outputs.originalTag @@ -243,7 +244,8 @@ jobs: RUNNER_TEMP: ${{ runner.temp }} INPUT_PATH: ${{ inputs.path }} LATEST_TAG: ${{ steps.target.outputs.latestTag }} - run: "$env:RUNNER_TEMP/ghwf/updater/scripts/update-dependency.ps1" -Path "$env:INPUT_PATH" -Tag "$env:LATEST_TAG" + run: | + & "$env:RUNNER_TEMP/ghwf/updater/scripts/update-dependency.ps1" -Path "$env:INPUT_PATH" -Tag "$env:LATEST_TAG" - name: Update Changelog if: ${{ inputs.changelog-entry && ( steps.target.outputs.latestTag != steps.target.outputs.originalTag ) && ( steps.root.outputs.changed == 'false') }} From ca92fc3134d31b882990fd4a4ec149075cfe051b Mon Sep 17 00:00:00 2001 From: Ivan Tustanivskyi Date: Mon, 11 Aug 2025 10:36:52 +0300 Subject: [PATCH 2/5] Fix path --- .github/workflows/updater.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/updater.yml b/.github/workflows/updater.yml index 9d08a1db..76c14957 100644 --- a/.github/workflows/updater.yml +++ b/.github/workflows/updater.yml @@ -115,11 +115,11 @@ jobs: RUNNER_TEMP: ${{ runner.temp }} WORKFLOW_VERSION: ${{ inputs._workflow_version }} run: | - mkdir -p "$RUNNER_TEMP/ghwf" - cd "$RUNNER_TEMP/ghwf" + New-Item -ItemType Directory -Path "$env:RUNNER_TEMP/ghwf" -Force + Set-Location "$env:RUNNER_TEMP/ghwf" git init git remote add origin https://github.com/getsentry/github-workflows.git - git fetch --depth 1 origin "$WORKFLOW_VERSION" + git fetch --depth 1 origin "$env:WORKFLOW_VERSION" git checkout FETCH_HEAD - name: Update to the latest version From 012826f7663e0bba30c10a188edc3238e6e9e3cb Mon Sep 17 00:00:00 2001 From: Ivan Tustanivskyi Date: Mon, 11 Aug 2025 10:40:10 +0300 Subject: [PATCH 3/5] Fix command --- .github/workflows/updater.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/updater.yml b/.github/workflows/updater.yml index 76c14957..3068ac29 100644 --- a/.github/workflows/updater.yml +++ b/.github/workflows/updater.yml @@ -146,7 +146,7 @@ jobs: } "baseBranch=$mainBranch" | Tee-Object $env:GITHUB_OUTPUT -Append "prBranch=$prBranch" | Tee-Object $env:GITHUB_OUTPUT -Append - $nonBotCommits = "$env:RUNNER_TEMP/ghwf/updater/scripts/nonbot-commits.ps1" ` + $nonBotCommits = & "$env:RUNNER_TEMP/ghwf/updater/scripts/nonbot-commits.ps1" ` -RepoUrl "$(git config --get remote.origin.url)" -PrBranch $prBranch -MainBranch $mainBranch $changed = $nonBotCommits.Length -gt 0 ? 'true' : 'false' "changed=$changed" | Tee-Object $env:GITHUB_OUTPUT -Append From 8b800701c15a0fe50821f3879074efab5820cbff Mon Sep 17 00:00:00 2001 From: Ivan Tustanivskyi Date: Mon, 11 Aug 2025 10:43:01 +0300 Subject: [PATCH 4/5] Rever to cd --- .github/workflows/updater.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/updater.yml b/.github/workflows/updater.yml index 3068ac29..4a9728e9 100644 --- a/.github/workflows/updater.yml +++ b/.github/workflows/updater.yml @@ -116,7 +116,7 @@ jobs: WORKFLOW_VERSION: ${{ inputs._workflow_version }} run: | New-Item -ItemType Directory -Path "$env:RUNNER_TEMP/ghwf" -Force - Set-Location "$env:RUNNER_TEMP/ghwf" + cd "$env:RUNNER_TEMP/ghwf" git init git remote add origin https://github.com/getsentry/github-workflows.git git fetch --depth 1 origin "$env:WORKFLOW_VERSION" From ee0c5d189c6d42c2ef091aac55ea7e9d05fbca8a Mon Sep 17 00:00:00 2001 From: Ivan Tustanivskyi Date: Mon, 11 Aug 2025 10:54:36 +0300 Subject: [PATCH 5/5] Update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81e0c344..25dd0f9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Unreleased + +- Fix updater.yml syntax errors ([#96](https://github.com/getsentry/github-workflows/pull/96)) + ## 2.13.0 ### Features