Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
airkei committed Jan 24, 2025
1 parent 17f9aac commit e15303b
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/actions/build_patches/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,10 @@ runs:
- name: get released versions
shell: bash
# handle multiline string
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#example-of-a-multiline-string
run: |
RELEASES=$(curl -s https://api.github.com/repos/tier4/ota-client/releases)
VERSIONS=$(echo "${RELEASES}" | jq -r '.[].name' | grep -oE '^v[0-9]+\.[0-9]+\.[0-9]+$' | sed 's/^v//')
echo "VERSIONS<<EOF" >> $GITHUB_ENV
echo "${VERSIONS}" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: debug versions
shell: bash
run: |
echo "VERSIONS=${VERSIONS}"
VERSIONS=$(echo "${RELEASES}" | jq -r '.[].name' | grep -oE '^v[0-9]+\.[0-9]+\.[0-9]+$' | sed 's/^v//' | tr '\n' ' ')
echo "VERSIONS=${VERSIONS}" >> $GITHUB_ENV
- name: extract target versions
shell: bash
Expand All @@ -52,9 +43,7 @@ runs:
grep -E "^${MAJOR}\.(${MINOR}|$((MINOR-1)))\.[0-9]+$" | \
grep -vE "^${MAJOR}\.${MINOR}\.${PATCH}$" | \
tr '\n' ' ')
echo "EXTRACTED_VERSIONS<<EOF" >> $GITHUB_ENV
echo "${EXTRACTED_VERSIONS}" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
echo "EXTRACTED_VERSIONS=${EXTRACTED_VERSIONS}" >> $GITHUB_ENV
- name: download and create patches for target versions
shell: bash
Expand Down

0 comments on commit e15303b

Please sign in to comment.