Skip to content

Commit c2d6b71

Browse files
vaindclaude
andcommitted
fix(updater): Convert shell commands to PowerShell in workflow checkout step
The workflow was failing because it used shell syntax (bash) in a PowerShell context. Converted the shell commands to proper PowerShell equivalents: - Variable assignment using PowerShell syntax - mkdir -> New-Item with -Force flag - cd -> Set-Location - regex replacement using PowerShell -replace operator 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 758c299 commit c2d6b71

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/updater.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ jobs:
137137
# Follow https://github.com/actions/checkout/issues/197
138138
run: |
139139
# Extract the ref from GITHUB_WORKFLOW_REF (e.g., getsentry/github-workflows/.github/workflows/updater.yml@refs/pull/109/merge -> refs/pull/109/merge)
140-
WORKFLOW_REF=$(echo "${{ github.workflow_ref }}" | sed 's/.*@//')
141-
mkdir -p ${{ runner.temp }}/ghwf
142-
cd ${{ runner.temp }}/ghwf
140+
$workflowRef = '${{ github.workflow_ref }}' -replace '.*@', ''
141+
New-Item -ItemType Directory -Force -Path '${{ runner.temp }}/ghwf'
142+
Set-Location '${{ runner.temp }}/ghwf'
143143
git init
144144
git remote add origin https://github.com/getsentry/github-workflows.git
145-
git fetch --depth 1 origin ${WORKFLOW_REF}
145+
git fetch --depth 1 origin $workflowRef
146146
git checkout FETCH_HEAD
147147
148148
- name: Update to the latest version

0 commit comments

Comments
 (0)