|
|
@@ -285,13 +285,13 @@ jobs:
|
|
|
fi
|
|
|
|
|
|
NEW_TAG=$(echo "$LATEST_TAG" | awk -F'-r' '{suffix=$2; if (!suffix) suffix=0; suffix++; printf "%s-r%d", $1, suffix}')
|
|
|
-
|
|
|
+
|
|
|
# Output the new tag to be used
|
|
|
echo "New tag: $NEW_TAG"
|
|
|
-
|
|
|
+
|
|
|
# Set the new tag as an environment variable to be used in later steps
|
|
|
echo "NEW_TAG=${NEW_TAG}" >> $GITHUB_ENV
|
|
|
-
|
|
|
+
|
|
|
# Create the tag in the repository
|
|
|
git tag $NEW_TAG
|
|
|
git push --tags
|
|
|
@@ -302,6 +302,31 @@ jobs:
|
|
|
with:
|
|
|
path: ./downloaded-artifacts
|
|
|
|
|
|
+ - name: List & Filter Kernel Artifacts
|
|
|
+ shell: bash
|
|
|
+ run: |
|
|
|
+ echo "Fetching available artifacts..."
|
|
|
+ gh run list --json artifacts -q '.artifacts[].name' | grep '^kernel-' > kernel_artifacts.txt || true
|
|
|
+
|
|
|
+ # Check if there are matching artifacts
|
|
|
+ if [ ! -s kernel_artifacts.txt ]; then
|
|
|
+ echo "No kernel-* artifacts found."
|
|
|
+ exit 0
|
|
|
+ fi
|
|
|
+
|
|
|
+ echo "Artifacts to download:"
|
|
|
+ cat kernel_artifacts.txt
|
|
|
+
|
|
|
+ - name: Download Kernel Artifacts
|
|
|
+ shell: bash
|
|
|
+ run: |
|
|
|
+ mkdir -p ./downloaded-artifacts
|
|
|
+
|
|
|
+ while IFS= read -r artifact; do
|
|
|
+ echo "Downloading artifact: $artifact"
|
|
|
+ gh run download --name "$artifact" --dir ./downloaded-artifacts
|
|
|
+ done < kernel_artifacts.txt
|
|
|
+
|
|
|
# Create GitHub Release and upload files if make_release is true
|
|
|
- name: Create GitHub Release
|
|
|
uses: actions/create-release@v1
|