Skip to content

Commit

Permalink
build: fix fork condition
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de>
  • Loading branch information
ckotzbauer committed Jun 18, 2022
1 parent 951230b commit b30b917
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
REGISTRY_TOKEN: ${{ secrets.GHCR_PASSWORD }}
IS_FORK: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
run: |
if [ "$IS_FORK" != 'true' ]; then
if [ "$IS_FORK" != true ]; then
DATE="$(date +%Y%m%d%H%M%S)"
docker login -u "$REGISTRY_USER" -p "$REGISTRY_TOKEN" ghcr.io
docker build --build-arg date=${DATE} -t ghcr.io/ckotzbauer/sbom-operator/oci-test:${DATE} internal/target/oci/fixtures
Expand All @@ -59,7 +59,7 @@ jobs:
COSIGN_REPOSITORY="ghcr.io/ckotzbauer/sbom-operator/oci-test" cosign download sbom ${DIGEST}
else
go test $(go list ./... | grep -v internat/target/oci) -coverprofile cover.out
go test $(go list ./... | grep -v internal/target/oci) -coverprofile cover.out
fi
- uses: codecov/codecov-action@v3
Expand Down

0 comments on commit b30b917

Please sign in to comment.