Skip to content

Commit 14c84aa

Browse files
committed
ci: update verify-cache-overwrite job dependencies and echo format
1 parent bdb34f5 commit 14c84aa

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,8 @@ jobs:
443443
bom-path: gapic-libraries-bom/pom.xml
444444
test-cache-overwrite:
445445
name: verify-cache-overwrite
446+
needs: bulk-filter
447+
if: ${{ needs.bulk-filter.outputs.runnable == 'true' }}
446448
runs-on: ubuntu-latest
447449
steps:
448450
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
@@ -483,14 +485,11 @@ jobs:
483485
MARKER_FILE="java-common-protos/proto-google-common-protos/src/main/java/com/google/type/CacheTestMarker.java"
484486
mkdir -p "$(dirname "$MARKER_FILE")"
485487
TIMESTAMP=$(date +%s)
486-
cat <<EOF > "$MARKER_FILE"
487-
package com.google.type;
488-
489-
public class CacheTestMarker {
490-
public static final String TIMESTAMP = "$TIMESTAMP";
491-
public static final String VERSION_MARKER = "TEST_CACHE_OVERWRITE_VERIFIED_$TIMESTAMP";
492-
}
493-
EOF
488+
echo "package com.google.type;" > "$MARKER_FILE"
489+
echo "public class CacheTestMarker {" >> "$MARKER_FILE"
490+
echo " public static final String TIMESTAMP = \"$TIMESTAMP\";" >> "$MARKER_FILE"
491+
echo " public static final String VERSION_MARKER = \"TEST_CACHE_OVERWRITE_VERIFIED_$TIMESTAMP\";" >> "$MARKER_FILE"
492+
echo "}" >> "$MARKER_FILE"
494493
echo "Created source marker:"
495494
cat "$MARKER_FILE"
496495
echo "Recording pre-install artifact timestamps and checksums in ~/.m2..."

0 commit comments

Comments
 (0)