Skip to content

Commit 3e3430d

Browse files
committed
ci(dev fallback if not git tag yet): need package token on repo too
1 parent 4d5f6ec commit 3e3430d

File tree

2 files changed

+5
-57
lines changed

2 files changed

+5
-57
lines changed

.github/workflows/dev.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ jobs:
9898
# This tag may not belong to the current branch, so the result isn't guaranteed to reflect the latest changes on this branch.
9999
echo "Semver fallback: using latest Git tag, which may not be from the current branch."
100100
fi
101+
102+
if [ -z "$SEMVER_OUTPUT" ]; then
103+
SEMVER_OUTPUT="0.0.0"
104+
echo "No semantic version or tag, defaulting to 0.0.0 $SEMVER_OUTPUT"
105+
fi
101106
102107
# Export the result to the environment
103108
echo "SEMVER_OUTPUT=$SEMVER_OUTPUT" >> $GITHUB_ENV

.github/workflows/reuseable-ci-checks.yml

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -113,60 +113,3 @@ jobs:
113113
exit 1
114114
fi
115115
continue-on-error: false
116-
117-
118-
# branch-name-check:
119-
# name: PR Check Enforce Branch Name Convention
120-
# runs-on: ubuntu-latest
121-
# steps:
122-
# - name: Validate Branch Name
123-
# run: |
124-
# #BRANCH_NAME="${GITHUB_HEAD_REF}"
125-
# BRANCH_NAME="${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}"
126-
# echo "Validating branch name: $BRANCH_NAME"
127-
128-
# if [[ "$BRANCH_NAME" =~ ^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test|sample|security|config|bugfix|hotfix)-[a-zA-Z0-9._/-]+$ ]] || [[ "$BRANCH_NAME" == "master" ]] || [[ "$BRANCH_NAME" == "Automatic_version_update_dependabot" ]]; then
129-
# echo "✅ Branch name is valid"
130-
# else
131-
# echo "❌ Invalid branch name: $BRANCH_NAME"
132-
# echo "Branch names must follow one of the allowed prefixes:"
133-
# echo " build-*, feat-*, fix-*, bugfix-*, hotfix-*, build-*, chore-*, ci-*, docs-*, perf-*, refactor-*, revert-*, style-*, test-*, sample-*, security-*, config-*, bugfix-*, hotfix-*"
134-
# exit 1
135-
# fi
136-
# continue-on-error: ${{ inputs.runall }}
137-
138-
# commitlint:
139-
# name: PR Check commitlint
140-
# runs-on: ubuntu-latest
141-
# steps:
142-
# - uses: actions/checkout@v4
143-
# with:
144-
# fetch-depth: 0
145-
# - uses: wagoid/commitlint-github-action@v5
146-
# with:
147-
# configFile: .commitlintrc.json
148-
# continue-on-error: ${{ inputs.runall }}
149-
150-
# Unit-Tests:
151-
# name: PR Check Unit Tests
152-
# runs-on: ubuntu-latest
153-
# steps:
154-
# - name: See other project pipeline for Tests
155-
# run: echo " See other project pipeline for Tests this is a placeholder"
156-
# continue-on-error: ${{ inputs.runall }}
157-
158-
# E2E-Tests:
159-
# name: PR Check E2E Tests
160-
# runs-on: ubuntu-latest
161-
# steps:
162-
# - name: See other project pipeline for Tests
163-
# run: echo " See other project pipeline for Tests this is a placeholder"
164-
# continue-on-error: ${{ inputs.runall }}
165-
166-
# Code-Coverage:
167-
# name: PR Check Code Coverage
168-
# runs-on: ubuntu-latest
169-
# steps:
170-
# - name: Code Coverage
171-
# run: echo "TODO Code Coverage"
172-
# continue-on-error: ${{ inputs.runall }}

0 commit comments

Comments
 (0)