Skip to content

Commit

Permalink
snap version
Browse files Browse the repository at this point in the history
  • Loading branch information
dxli committed Oct 31, 2024
1 parent 7c9c3c9 commit 36b6adf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,17 @@ jobs:
fetch-depth: 0
ref: 2.2.1

- name: install snap
uses: samuelmeuli/action-snapcraft@v2

- name: Preparation snapcraft
- name: Replace version
run: |
sed -i'' -E "/^version:/s/.*/version: \'$(git describe --always)\'/" ./scripts/createSnap.sh
pwd
export LC_VERSION="'$(git describe --always)'"
echo "${LC_VERSION}"
sed -i'' -E "/^version:.*([[:digit:]]+(\.[[:digit:]]+)+).*/version: ${LC_VERSION}/" ./scripts/createSnap.sh
head -3 ./scripts/createSnap.sh
- name: install snap
uses: samuelmeuli/action-snapcraft@v2

- name: Create snapcraft
run: |
pwd
Expand Down

0 comments on commit 36b6adf

Please sign in to comment.