Skip to content

Commit a4194a2

Browse files
authored
Add various fixes creation version github Action (#926)
* Add various fixes creation version * update nightly for codecov
1 parent 608d7e3 commit a4194a2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818
CARGO_TERM_COLOR: always
1919
RUST_VERSION: 1.81.0
2020
RUST_VERSION_FMT: nightly-2024-02-07
21-
RUST_VERSION_COV: nightly-2024-06-05
21+
RUST_VERSION_COV: nightly-2025-01-01
2222
GIT_BRANCH: ${{ github.head_ref || github.ref_name }}
2323

2424
jobs:

.github/workflows/create_version.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,19 @@ jobs:
4747
for file in "${files[@]}"; do
4848
filename=$(basename "$file" .md)
4949
content=$(cat "$file")
50+
# Ident by two spaces every new line
51+
content=$(echo -e "$content" | awk 'NR==1{print $0; next} {print " " $0}')
5052
VERSION_TEXT+="- [${filename}](https://github.com/FuelLabs/fuel-vm/pull/${filename}): ${content}\n"
5153
done
5254
fi
5355
fi
5456
done
57+
#Escape backquotes
58+
VERSION_TEXT=$(echo "$VERSION_TEXT" | sed 's/`/\\`/g')
59+
echo -e "$VERSION_TEXT"
5560
{
5661
echo 'VERSION_TEXT<<EOF'
57-
echo -e ${VERSION_TEXT}
62+
echo -e "${VERSION_TEXT}"
5863
echo EOF
5964
} >> "$GITHUB_OUTPUT"
6065
- name: Update PR description with the version and changes

0 commit comments

Comments
 (0)