Commit c122d74 1 parent 84e1add commit c122d74 Copy full SHA for c122d74
File tree 2 files changed +16
-30
lines changed
2 files changed +16
-30
lines changed Original file line number Diff line number Diff line change @@ -17,30 +17,23 @@ jobs:
17
17
image : fedora:40
18
18
19
19
steps :
20
- - name : Install Git
21
- run : dnf install -y git
22
-
23
20
- name : Checkout repository
24
21
uses : actions/checkout@v4
22
+ with :
23
+ fetch-depth : 0
24
+
25
+ - name : Install Git
26
+ run : |
27
+ dnf install -y git
28
+ git fetch --tags --force
29
+ git verify-tag $(git describe --tags --abbrev=0)
25
30
26
31
- name : Configure Git safe directory
27
32
run : git config --global --add safe.directory "$GITHUB_WORKSPACE"
28
33
29
34
- name : Install build dependencies
30
35
run : dnf install -y rpm-build meson ninja-build cmake g++ gcc-c++ scdoc git python3-devel python3-build python3-installer python3-hatchling python python3 cargo python3-hatch-vcs python3-wheel libzstd-devel
31
36
32
- - name : Extract Version and SHA
33
- run : |
34
- # Get version from git tags (assuming semantic versioning format)
35
- VERSION=$(git describe --tags --abbrev=0 || echo "unknown")
36
-
37
- # Get current commit SHA
38
- COMMIT_SHA=$(git rev-parse HEAD)
39
-
40
- # Store values in environment file
41
- echo "VERSION=$VERSION" >> $GITHUB_ENV
42
- echo "COMMIT_SHA=$COMMIT_SHA" >> $GITHUB_ENV
43
-
44
37
- name : Build the project
45
38
run : |
46
39
git submodule update --init --recursive
Original file line number Diff line number Diff line change @@ -17,30 +17,23 @@ jobs:
17
17
image : fedora:41
18
18
19
19
steps :
20
- - name : Install Git
21
- run : dnf install -y git
22
-
23
20
- name : Checkout repository
24
21
uses : actions/checkout@v4
22
+ with :
23
+ fetch-depth : 0
24
+
25
+ - name : Install Git
26
+ run : |
27
+ dnf install -y git
28
+ git fetch --tags --force
29
+ git verify-tag $(git describe --tags --abbrev=0)
25
30
26
31
- name : Configure Git safe directory
27
32
run : git config --global --add safe.directory "$GITHUB_WORKSPACE"
28
33
29
34
- name : Install build dependencies
30
35
run : dnf install -y rpm-build meson ninja-build cmake g++ gcc-c++ scdoc git python3-devel python3-build python3-installer python3-hatchling python python3 cargo python3-hatch-vcs python3-wheel libzstd-devel
31
36
32
- - name : Extract Version and SHA
33
- run : |
34
- # Get version from git tags (assuming semantic versioning format)
35
- VERSION=$(git describe --tags --abbrev=0 || echo "unknown")
36
-
37
- # Get current commit SHA
38
- COMMIT_SHA=$(git rev-parse HEAD)
39
-
40
- # Store values in environment file
41
- echo "VERSION=$VERSION" >> $GITHUB_ENV
42
- echo "COMMIT_SHA=$COMMIT_SHA" >> $GITHUB_ENV
43
-
44
37
- name : Build the project
45
38
run : |
46
39
git submodule update --init --recursive
You can’t perform that action at this time.
0 commit comments