Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 7 additions & 19 deletions .github/workflows/publish-immutable-action.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: 'Publish Immutable Action Version'

on:
release:
types: [published]
push:
tags:
# Match version tags, but not the major version tags.
- 'v[0-9]+.**'
Copy link

Copilot AI Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tag pattern 'v[0-9]+.' is incorrect glob syntax. The double asterisk '' is not a valid glob pattern for matching version numbers. This should be 'v[0-9]+.*' (single asterisk) to match tags like 'v3.29.9', or 'v[0-9]+.[0-9]+.[0-9]+' to explicitly match semantic version tags.

Suggested change
- 'v[0-9]+.**'
- 'v[0-9]+.*'

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


defaults:
run:
Expand All @@ -17,23 +19,9 @@ jobs:
packages: write

steps:
- name: Check release name
id: check
env:
RELEASE_NAME: ${{ github.event.release.name }}
run: |
echo "Release name: ${{ github.event.release.name }}"
if [[ $RELEASE_NAME == v* ]]; then
echo "This is a CodeQL Action release. Create an Immutable Action"
echo "is-action-release=true" >> $GITHUB_OUTPUT
else
echo "This is a CodeQL Bundle release. Do not create an Immutable Action"
echo "is-action-release=false" >> $GITHUB_OUTPUT
fi
- name: Checking out
if: steps.check.outputs.is-action-release == 'true'
- name: Checkout repository
uses: actions/checkout@v5
- name: Publish
if: steps.check.outputs.is-action-release == 'true'

- name: Publish immutable release
id: publish
uses: actions/[email protected]
Loading