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

Commit

Permalink
ci(docker): fix scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazmi35 authored Feb 24, 2024
1 parent a894a75 commit f11f2b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/services-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ jobs:
service: ${{ steps.scope.outputs.service }}
version: ${{ steps.scope.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Check Out Repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- 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)
SERVICE_NAME=$(echo $TAG | 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 }}
scope: '["${{ needs.scope.outputs.service }}"]'
version: ${{ needs.scope.outputs.version }}
secrets: inherit

0 comments on commit f11f2b4

Please sign in to comment.