diff --git a/.gitea/workflows/chart.yml b/.gitea/workflows/chart.yml index 2a1bd82..ffb99b1 100644 --- a/.gitea/workflows/chart.yml +++ b/.gitea/workflows/chart.yml @@ -26,9 +26,11 @@ jobs: https://code.brunner.ninja/api/packages/feedc0de/helm/api/charts - name: Check that this is still current main if: gitea.ref == 'refs/heads/main' + env: + COMMIT_SHA: ${{ gitea.sha }} run: | git fetch --no-tags origin main - test "$(git rev-parse FETCH_HEAD)" = "${GITEA_SHA}" + test "$(git rev-parse FETCH_HEAD)" = "${COMMIT_SHA}" - name: Check out GitOps if: gitea.ref == 'refs/heads/main' uses: actions/checkout@v4