Skip to content

Commit

Permalink
pipe version file
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix committed Sep 28, 2024
1 parent b9794ac commit 6315d6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/milestones.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ jobs:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
- name: Get VERSION file
id: version-file
run: |
gh api \
-H "Accept: application/vnd.github.raw" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"/repos/{owner}/{repo}/contents/include/VERSION" >> ./include/VERSION
"/repos/{owner}/{repo}/contents/include/VERSION" | \
head -n 3 | xargs | sed 's/ /./g' | sed 's/\(RC\|dev\)//g'
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
Expand Down

0 comments on commit 6315d6a

Please sign in to comment.