Skip to content

Commit

Permalink
ci: Use meson introspection to fetch project version
Browse files Browse the repository at this point in the history
Seems a little less fragile than using the NEWS.md file directly.

Suggested by Peter Hutterer.
  • Loading branch information
GeorgesStavracas committed Feb 13, 2025
1 parent ff97881 commit d9bca63
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ RUN apt install -y --no-install-recommends \
git \
gnome-desktop-testing \
gtk-doc-tools \
jq \
libcap2-bin \
libflatpak-dev \
libfontconfig1-dev \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
env:
IMAGE_TAG: 20241211-1
IMAGE_TAG: 20250213-1

on:
workflow_call:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Extract release information
run: |
# Extract the release version
releaseVersion=`perl -0777nE 'print $& if /(?<=Changes in ).*/' NEWS.md`
releaseVersion=`meson introspect --projectinfo _build/ | jq -r .version`
echo "releaseVersion=$releaseVersion" | tee -a $GITHUB_ENV
echo $releaseVersion
Expand Down

0 comments on commit d9bca63

Please sign in to comment.