Update StarDustV.txt #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Release from StarDustV.txt | |
on: | |
push: | |
paths: | |
- 'SD_card_root/StarDust/StarDustV.txt' | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Get version from StarDustV.txt | |
id: version | |
run: | | |
# Leer el contenido del archivo y eliminar saltos de línea y caracteres Windows | |
VERSION=$(cat SD_card_root/StarDust/StarDustV.txt | tr -d '\r' | tr -d '\n' | tr -d '[:space:]' | tr -cd '[:alnum:]-') | |
echo "VERSION=$VERSION" >> $GITHUB_ENV | |
echo "Cleaned VERSION: $VERSION" | |
- name: Create release | |
run: | | |
# Crear la release usando el contenido limpio de StarDustV.txt como tag_name | |
gh release create ${{ env.VERSION }} ./SD_card_root/boot_payload.bin | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |