diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a110c00..50b6938 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,26 +41,34 @@ jobs: name: ${{ steps.variables.outputs.name }} fingerprint: ${{ steps.variables.outputs.fingerprint }} steps: + - name: check branch condition before checkout + run: | + echo ":${{ github.ref }}:" + - uses: actions/checkout@v4 with: fetch-depth: 1 + - name: check branch condition after checkout + run: | + echo ":${{ github.ref }}:" + - name: Do wibble id: wibble run: | echo "IMAGE_TAG=:${IMAGE_TAG}:" echo "IMAGE_NAME=:${IMAGE_NAME}:" - exit 0 + exit 23 - name: Setup Kosli cli - if: ${{ github.ref }} == 'refs/heads/main' && (success() || failure()) + if: ${{ github.ref == 'refs/heads/main' && (success() || failure()) }} uses: kosli-dev/setup-cli-action@v2 with: version: ${{ env.KOSLI_CLI_VERSION }} - name: When on master, attest result to Kosli - if: ${{ github.ref }} == 'refs/heads/main' && (success() || failure()) + if: ${{ github.ref == 'refs/heads/main' && (success() || failure()) }} run: | echo "KOSLI_DRY_RUN=:${KOSLI_DRY_RUN}:" KOSLI_COMPLIANT=$([ "${{ steps.wibble.outcome }}" == 'success' ] && echo true || echo false)