init
lint / lint (push) Failing after 10s
lint / smoke (push) Skipped

This commit is contained in:
Sherif Emad
2026-11-08 15:39:22 +02:00
commit d67d814144
12 changed files with 972 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
# Action: auto-tag. Calculates (and optionally pushes) the next git tag
# of the CONSUMING repo. Unrelated to releases of ci-templates itself.
#
# Inputs consumers set:
# tag-type required tag prefix: dev, beta, prod, ...
# tag-env optional "production" -> <type>-<max>.<major>.<minor> scheme
# push-tag optional "true" creates and pushes the tag (default "false")
# push-token optional token with write access; required when push-tag=true
#
# Outputs: tag, previous-tag, stream
#
# Needs: bash and git on the runner, and a checkout with full tag history:
# - uses: actions/checkout@v4
# with: { fetch-depth: 0 }
name: auto-tag
description: Calculates (and optionally pushes) the next git tag
inputs:
tag-type:
description: "Tag prefix: dev, beta, prod, ..."
required: true
tag-env:
description: "Set to production for the <type>-<max>.<major>.<minor> scheme"
required: false
default: ""
push-tag:
description: "true creates and pushes the tag"
required: false
default: "false"
push-token:
description: "Token with write access. Required only when push-tag is true"
required: false
default: ""
outputs:
tag:
description: The new tag
value: ${{ steps.calc.outputs.TAG }}
previous-tag:
description: The latest existing tag with this prefix (empty if none)
value: ${{ steps.calc.outputs.PREVIOUS_TAG }}
stream:
description: The tag type (prefix)
value: ${{ steps.calc.outputs.STREAM }}
runs:
using: composite
steps:
- name: Calculate next tag
id: calc
shell: bash
env:
TAG_TYPE: ${{ inputs.tag-type }}
TAG_ENV: ${{ inputs.tag-env }}
PUSH_TAG: ${{ inputs.push-tag }}
GIT_PUSH_TOKEN: ${{ inputs.push-token }}
run: '"${{ github.action_path }}/../../scripts/auto-tag.sh"'
+48
View File
@@ -0,0 +1,48 @@
# Action: check-tags. Decides the next semantic-version tag for the CONSUMING
# repo, or reports skip=true when the branch head is already tagged.
# Calculates only: it does not create or push a tag.
#
# Inputs consumers set:
# tags-version required major | minor | test | cib
# major -> main-v<M>.<m>.<p>, bumps major
# minor -> dev-v<M>.<m>.<p>, bumps minor
# test -> test-v<M>.<m>.<p>, bumps patch
# cib -> cib-v<M>.<m>.<p>, bumps patch
# branch optional branch to compare against (default: current ref name)
#
# Outputs: tag, previous-tag, skip
#
# Needs: bash and git on the runner, and a checkout with full history:
# - uses: actions/checkout@v4
# with: { fetch-depth: 0 }
name: check-tags
description: Calculates the next semver tag, or skips when the head is already tagged
inputs:
tags-version:
description: "major, minor, test or cib"
required: true
branch:
description: "Branch to compare against. Defaults to the current ref name"
required: false
default: ""
outputs:
tag:
description: The new tag, or the existing latest tag when skip is true
value: ${{ steps.calc.outputs.TAG }}
previous-tag:
description: The latest existing tag with this prefix (empty if none)
value: ${{ steps.calc.outputs.PREVIOUS_TAG }}
skip:
description: '"true" when the branch head already carries the latest tag'
value: ${{ steps.calc.outputs.SKIP }}
runs:
using: composite
steps:
- name: Check tags
id: calc
shell: bash
env:
TAGS_VERSION: ${{ inputs.tags-version }}
BRANCH_NAME: ${{ inputs.branch }}
run: '"${{ github.action_path }}/../../scripts/check-tags.sh"'
+22
View File
@@ -0,0 +1,22 @@
# Action: hello. Prints a greeting and CI info (example action).
#
# Inputs consumers set:
# name optional default "world"
#
# Needs: bash on the runner.
name: hello
description: Prints a greeting and CI info
inputs:
name:
description: Name to greet
required: false
default: world
runs:
using: composite
steps:
- name: Run hello.sh
shell: bash
env:
GREET_NAME: ${{ inputs.name }}
run: '"${{ github.action_path }}/../../scripts/hello.sh" "$GREET_NAME"'
+28
View File
@@ -0,0 +1,28 @@
# Action: notify. Prints a notification line (stub for a webhook).
#
# Inputs consumers set:
# status optional default "info"
# message optional default "pipeline step finished"
#
# Needs: bash on the runner.
name: notify
description: Prints a notification line
inputs:
status:
description: Status word in the message
required: false
default: info
message:
description: Message text
required: false
default: pipeline step finished
runs:
using: composite
steps:
- name: Run notify.sh
shell: bash
env:
NOTIFY_STATUS: ${{ inputs.status }}
NOTIFY_MESSAGE: ${{ inputs.message }}
run: '"${{ github.action_path }}/../../scripts/notify.sh" "$NOTIFY_STATUS" "$NOTIFY_MESSAGE"'