Skip to content

Commit

Permalink
adding freshness to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
didier-durand committed Sep 11, 2020
1 parent 8404826 commit 4636dc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/gcloud-logging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ jobs:
# sleep 10s to give enough time for log message to be centralized in aggregate logging.
run: |-
sleep 10s
gcloud logging read --verbosity=$GCP_VERBOSITY --limit=1000 --order=desc --project=${{ secrets.GCP_PROJECT }} --quiet
grep "textPayload:.*Github.*$GITHUB_SHA" <<< $(gcloud logging read --order=desc --verbosity=$GCP_VERBOSITY --limit=1000 --project=${{ secrets.GCP_PROJECT }} --quiet)
gcloud logging read --verbosity=$GCP_VERBOSITY --limit=1000 --order=desc --freshness=2m --project=${{ secrets.GCP_PROJECT }} --quiet
grep "textPayload:.*Github.*$GITHUB_SHA" <<< $(gcloud logging read --order=desc --freshness=2m --verbosity=$GCP_VERBOSITY --limit=1000 --project=${{ secrets.GCP_PROJECT }} --quiet)
- name: Delete test log
run: |-
Expand Down

0 comments on commit 4636dc5

Please sign in to comment.