Skip to content

Commit 7567096

Browse files
authored
chore: fixes earthly skip checks (#174)
1 parent 71b9e2c commit 7567096

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,13 @@ jobs:
5555
id: local
5656
run: |
5757
forge version
58-
59-
if [[ "${{ inputs.forge_version }}" == "local" ]]; then
60-
echo "skip=true" >> $GITHUB_OUTPUT
61-
else
62-
echo "skip=false" >> $GITHUB_OUTPUT
63-
fi
6458
- name: Setup CI
6559
uses: input-output-hk/catalyst-forge/actions/setup@master
6660
with:
6761
skip_docker: 'true'
6862
skip_github: 'true'
69-
skip_earthly_install: ${{ steps.install-local.outputs.cache-hit == false }}
70-
skip_earthly_satellite: ${{ steps.install-local.outputs.cache-hit == false }}
63+
skip_earthly_install: ${{ inputs.forge_version == 'local' && steps.install-local.outputs.cache-hit == false }}
64+
skip_earthly_satellite: ${{ inputs.forge_version == 'local' && steps.install-local.outputs.cache-hit == false }}
7165
- name: Discovery
7266
id: discovery
7367
uses: input-output-hk/catalyst-forge/actions/discovery@master

.github/workflows/run.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,11 @@ jobs:
5656
id: local
5757
run: |
5858
forge version
59-
60-
if [[ "${{ inputs.forge_version }}" == "local" ]]; then
61-
echo "skip=true" >> $GITHUB_OUTPUT
62-
else
63-
echo "skip=false" >> $GITHUB_OUTPUT
64-
fi
6559
- name: Setup CI
6660
uses: input-output-hk/catalyst-forge/actions/setup@master
6761
with:
68-
skip_earthly_install: ${{ steps.install-local.outputs.cache-hit == false }}
69-
skip_earthly_satellite: ${{ steps.install-local.outputs.cache-hit == false }}
62+
skip_earthly_install: ${{ inputs.forge_version == 'local' && steps.install-local.outputs.cache-hit == false }}
63+
skip_earthly_satellite: ${{ inputs.forge_version == 'local' && steps.install-local.outputs.cache-hit == false }}
7064
- name: Run
7165
uses: input-output-hk/catalyst-forge/actions/run@master
7266
with:

0 commit comments

Comments
 (0)