Skip to content

Commit c95f786

Browse files
committed
Fix publish step: remove shell override, add CRLF guard
shell: bash resolves to Cygwin bash on this runner, not git-bash. The > folded block still needs && echo . to protect the last argument from \r. Remove the shell override (gh is on PATH in Cygwin bash) and add the guard. Remove CRLF diagnostic step.
1 parent 9f28413 commit c95f786

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ jobs:
3535
ninja
3636
curl
3737
38-
# Diagnostic: check whether GitHub Actions adds \r to temp scripts
39-
- name: CRLF diagnostic
40-
run: >
41-
od -c "$0" | tail -3 && echo .
42-
4338
- name: Build environment
4439
run: >
4540
echo "GCC=$(g++ -dumpfullversion) CMake=$(cmake --version | head -1) Cygwin=$(uname -r) CWD=$(pwd)"
@@ -157,11 +152,11 @@ jobs:
157152
&& echo .
158153
159154
- name: Publish release
160-
shell: bash
161155
env:
162156
GH_TOKEN: ${{ github.token }}
163157
run: >
164158
gh release create "$GITHUB_REF_NAME"
165159
--title "Abseil LTS ${GITHUB_REF_NAME%-cygwin} — Cygwin x86_64"
166160
--notes-file release-notes.md
167161
"abseil-cpp-$GITHUB_REF_NAME-x86_64.tar.gz" checksums-sha256.txt
162+
&& echo .

0 commit comments

Comments
 (0)