Skip to content

Commit 561ef98

Browse files
committed
feat(ci): only trigger if there's a tag
1 parent 1b688e3 commit 561ef98

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,15 @@ jobs:
121121
.map(label => label.name)
122122
.filter(name => name.startsWith('tag:'))
123123
.map(name => name.split(':')[1]);
124-
const tag = labels.length > 0 ? labels[0] : 'alpha';
125-
core.setOutput('tag', tag);
126-
124+
if (labels.length > 0) {
125+
core.setOutput('tag', labels[0]);
126+
} else {
127+
core.setOutput('skip', 'true');
128+
}
127129
- name: Trigger dependencies bot in lit-configuration-guides
130+
if: steps.pr-labels.outputs.skip != 'true'
128131
run: |
129132
TAG="${{ steps.pr-labels.outputs.tag }}"
130-
if [ -z "$TAG" ]; then
131-
TAG="alpha" # Default to alpha if no tag found
132-
fi
133133
curl -X POST \
134134
-H "Accept: application/vnd.github.everest-preview+json" \
135135
-H "Authorization: token ${{ secrets.GH_PAT_LIT_CONFIGURATION_GUIDES_REPO }}" \

0 commit comments

Comments
 (0)