mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 01:10:06 +08:00
Don't fail grep if no matches
This commit is contained in:
parent
a3b8c4d127
commit
c1686fb687
2
.github/workflows/_diffcalc_processor.yml
vendored
2
.github/workflows/_diffcalc_processor.yml
vendored
@ -84,7 +84,7 @@ jobs:
|
||||
PR_TEXT: ${{ inputs.pr-text }}
|
||||
run: |
|
||||
# Add comment environment
|
||||
echo "${PR_TEXT}" | sed -r 's/\r$//' | grep -E '^\w+=' | while read -r line; do
|
||||
echo "${PR_TEXT}" | sed -r 's/\r$//' | { grep -E '^\w+=' || true; } | while read -r line; do
|
||||
opt=$(echo "${line}" | cut -d '=' -f1)
|
||||
sed -i "s;^${opt}=.*$;${line};" "${{ env.GENERATOR_ENV }}"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user