Skip to content

Commit c09ebac

Browse files
committed
CI
1 parent f37b1f4 commit c09ebac

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-7
lines changed

.github/workflows/_helm.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,19 @@ jobs:
1515
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
18+
fetch-tags: true # fetch annotated tags
1819

1920
- name: Install helm
2021
uses: Azure/setup-helm@v3
2122
with:
2223
version: ${{ env.HELM_VERSION_TO_INSTALL }}
2324

25+
- name: Test
26+
run: |
27+
git describe || true
28+
git describe --tags || true
29+
git show odin-eiger@0.2.3 || true
30+
2431
- name: Package helm charts
2532
run: |
2633
./package-helm-charts.sh

.github/workflows/_release.yaml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,33 @@ jobs:
77
release:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Check tag
11-
run: |
12-
if [[ ! "${GITHUB_REF_NAME}" =~ ^([a-z0-9]+(-[a-z0-9]+)*)@([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then
13-
echo "Invalid tag format: '${GITHUB_REF_NAME}'. Expected 'kebab-case@semver', e.g., 'my-app@1.2.3'"
14-
exit 1
15-
fi
10+
# - name: Check tag
11+
# run: |
12+
# if [[ ! "${GITHUB_REF_NAME}" =~ ^([a-z0-9]+(-[a-z0-9]+)*)@([0-9]+\.[0-9]+\.[0-9]+)$ ]]; then
13+
# echo "Invalid tag format: '${GITHUB_REF_NAME}'. Expected 'kebab-case@semver', e.g., 'my-app@1.2.3'"
14+
# exit 1
15+
# fi
1616

1717
- name: Download artifacts
1818
uses: actions/download-artifact@v4
1919
with:
2020
merge-multiple: true
2121

22+
- name: Debug
23+
run: |
24+
pwd
25+
ls -la
26+
tree
27+
28+
- name: Set SCHEMA_FILE env var
29+
run: |
30+
echo "SCHEMA_FILE=${GITHUB_REF_NAME%@*}.schema.json" >> $GITHUB_ENV
31+
2232
- name: Create GitHub release with schema for the tagged helm chart
2333
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
2434
with:
2535
files: |
26-
${GITHUB_REF_NAME%@*}.schema.json
36+
${{ env.SCHEMA_FILE }}
2737
generate_release_notes: true
2838

2939
- name: Push tagged helm chart to registry

0 commit comments

Comments
 (0)