Skip to content

Commit

Permalink
Use GITHUB_OUTPUT instead of env
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Wall <pete.wall@grafana.com>
  • Loading branch information
petewall committed Oct 5, 2024
1 parent b26625e commit 4b6347b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ jobs:
id: check-cluster-config
run: |
if [ -f "charts/k8s-monitoring/tests/integration/${{ matrix.test }}/cluster.yaml" ]; then
echo "has-cluster-config=true" >> "${GITHUB_ENV}"
echo "has-cluster-config=true" >> "${GITHUB_OUTPUT}"
else
echo "has-cluster-config=false" >> "${GITHUB_ENV}"
echo "has-cluster-config=false" >> "${GITHUB_OUTPUT}"
fi
- name: Create kind cluster
if: steps.check-cluster-config.outputs.has-cluster-config == false
if: ${{ steps.check-cluster-config.outputs.has-cluster-config == false }}
uses: helm/kind-action@v1

- name: Create kind cluster with special config
if: steps.check-cluster-config.outputs.has-cluster-config == true
if: ${{ steps.check-cluster-config.outputs.has-cluster-config == true }}
uses: helm/kind-action@v1
with:
config: charts/k8s-monitoring/tests/integration/${{ matrix.test }}/cluster.yaml
Expand Down

0 comments on commit 4b6347b

Please sign in to comment.