| 1 | name: Return the version extracted from the branch name |
| 2 | |
| 3 | # |
| 4 | # Returns the version from the .version file. |
| 5 | # |
| 6 | # TODO: Remove once the common repo is public. |
| 7 | # |
| 8 | |
| 9 | outputs: |
| 10 | version: |
| 11 | value: ${{ steps.get_version.outputs.VERSION }} |
| 12 | |
| 13 | runs: |
| 14 | using: composite |
| 15 | |
| 16 | steps: |
| 17 | - id: get_version |
| 18 | shell: bash |
| 19 | run: | |
| 20 | VERSION=$(head -1 .version) |
| 21 | echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT |