Skip to content

Commit

Permalink
fix: extract version number
Browse files Browse the repository at this point in the history
  • Loading branch information
kolipakakondal committed Aug 30, 2024
1 parent b618592 commit 38a6e69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
id: extract_version
run: |
# List all files and extract the version number from the file names
version=$(ls releng/com.espressif.idf.product/target/products/Espressif-IDE-*.tar.gz | grep -oP '(?<=Espressif-IDE-)\d+\.\d+\.\d+')
version=$(ls releng/com.espressif.idf.product/target/products/Espressif-IDE-*.tar.gz | sed -E 's/.*Espressif-IDE-([0-9]+\.[0-9]+\.[0-9]+)-.*/\1/' | head -n 1)
echo "VERSION=${version}" >> $GITHUB_ENV
- name: Upload build artifacts
Expand Down

0 comments on commit 38a6e69

Please sign in to comment.