diff --git a/.github/workflows/updater.yml b/.github/workflows/updater.yml index 85a21184..4a9728e9 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 + cd "$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 @@ -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 @@ -145,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 @@ -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') }} 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