Skip to content

Commit

Permalink
fix: client-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
majkshkurti committed Sep 12, 2023
1 parent 7299a7e commit b4652b2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
permissions:
pull-requests: read
contents: read
outputs:
client-goat: ${{ steps.changes.outputs.client-goat }}
keycloak-theme: ${{ steps.changes.outputs.keycloak-theme }}
storybook: ${{ steps.changes.outputs.storybook }}
sha-short: ${{ steps.sha-short.outputs.sha-short }}
steps:
- name: 📥 Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -69,8 +74,5 @@ jobs:
id: sha-short
run: echo "sha-short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

outputs:
client-goat: ${{ steps.changes.outputs.client-goat }}
keycloak-theme: ${{ steps.changes.outputs.keycloak-theme }}
storybook: ${{ steps.changes.outputs.storybook }}
sha-short: ${{ steps.sha-short.outputs.sha-short }}


2 changes: 2 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:

build-goat:
name: build
needs: file-changes
if: ${{ needs.file-changes.outputs.client-goat == 'true' || needs.file-changes.outputs.storybook == 'true' }}
uses: ./.github/workflows/production-build.yml
secrets: inherit
Expand All @@ -63,6 +64,7 @@ jobs:

build-keycloak:
name: build-keycloak
needs: file-changes
if: ${{ needs.file-changes.outputs.keycloak-theme == 'true' }}
uses: ./.github/workflows/keycloak-build.yml

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:

release-docker-goat:
name: release-docker-goat
needs: file-changes
if: ${{ needs.file-changes.outputs.client-goat == 'true' }}
uses: goat-community/.github/.github/workflows/reusable-docker-build.yml@main
permissions:
Expand All @@ -35,6 +36,7 @@ jobs:
release-docker-storybook:
name: release-docker-storybook
needs: file-changes
if: ${{ needs.file-changes.outputs.storybook == 'true' }}
uses: goat-community/.github/.github/workflows/reusable-docker-build.yml@main
permissions:
Expand All @@ -55,6 +57,8 @@ jobs:
release-keycloak-theme:
name: release-keycloak-theme
needs: file-changes
if: ${{ needs.file-changes.outputs.keycloak-theme == 'true' }}
uses: ./.github/workflows/keycloak-build.yml
secrets: inherit
with:
Expand Down

0 comments on commit b4652b2

Please sign in to comment.