Skip to content

Commit 33f3aed

Browse files
committed
verify and show version number
1 parent a62f35f commit 33f3aed

File tree

3 files changed

+34
-5
lines changed

3 files changed

+34
-5
lines changed

.github/workflows/docker_image.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,36 @@ on:
1212
- main
1313

1414
jobs:
15+
version:
16+
name: Detect version
17+
runs-on: ubuntu-latest
18+
outputs:
19+
tag: ${{ steps.version.outputs.tag }}
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
- name: Install yq
25+
run: |
26+
sudo apt-get install -y yq
27+
- id: version
28+
run: |
29+
TAG=$(yq e '.slogan | sub("^v", "")' web/sites/default/files/sync/system.site.yml)
30+
echo "${TAG}"
31+
echo "tag=${TAG}" >> $GITHUB_OUTPUT
32+
- name: Check git tag
33+
if: startsWith(github.ref, 'refs/tags/v')
34+
run: |
35+
GIT_TAG="${GITHUB_REF#refs/tags/}"
36+
EXPECTED_TAG="v${{ steps.version.outputs.tag }}"
37+
if [[ "${GIT_TAG}" != "${EXPECTED_TAG}" ]]; then
38+
echo "Error: Git tag (${GIT_TAG}) does not match version from system.site.yml (v${{ steps.version.outputs.tag }})"
39+
exit 1
40+
fi
41+
1542
build-artifacts:
43+
needs: [ version ]
44+
1645
strategy:
1746
matrix:
1847
arch: [amd64, arm64]

web/sites/default/files/sync/block.block.ppuc_claro_sitebranding.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
uuid: d7210ad7-748e-46f9-b557-f3f4f4b96ec7
22
langcode: en
3-
status: false
3+
status: true
44
dependencies:
55
module:
66
- system
@@ -19,7 +19,7 @@ settings:
1919
label: 'Site branding'
2020
label_display: '0'
2121
provider: system
22-
use_site_logo: true
23-
use_site_name: true
22+
use_site_logo: false
23+
use_site_name: false
2424
use_site_slogan: true
2525
visibility: { }

web/sites/default/files/sync/system.site.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ _core:
22
default_config_hash: VDJxTZtQR21qB4lvOq8zszJZLvLKrSPQpdn2E3T71Ww
33
langcode: en
44
uuid: 1b923c28-14b0-4fd0-8138-76b453cb5d07
5-
name: 'Pinball Power-Up Controller'
5+
name: 'PPUC Config Tool'
66
mail: admin@example.com
7-
slogan: ''
7+
slogan: v0.1.3-dev-snapshot
88
page:
99
403: ''
1010
404: ''

0 commit comments

Comments
 (0)