Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

@nezuchan/kanao-gateway@5.4.2 #27

@nezuchan/kanao-gateway@5.4.2

@nezuchan/kanao-gateway@5.4.2 #27

name: Release services
on:
release:
types: [created]
jobs:
scope:
runs-on: ubuntu-latest
outputs:
service: ${{ steps.scope.outputs.service }}
version: ${{ steps.scope.outputs.version }}
steps:
- name: Check Out Repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Get tag name
id: tag
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Get scope
id: scope
run: |
TAG=${{ steps.tag.outputs.tag }}
SERVICE_NAME=$(echo $TAG | cut -d'@' -f2 | cut -d'/' -f2)
VERSION=$(echo $TAG | cut -d'@' -f3)
echo "service=${SERVICE_NAME}" >> $GITHUB_OUTPUT
echo "version=${VERSION}" >> $GITHUB_OUTPUT
docker:
uses: ./.github/workflows/docker.yml
needs: scope
with:
scope: '["${{ needs.scope.outputs.service }}"]'
version: ${{ needs.scope.outputs.version }}
secrets: inherit