Skip to content

Commit

Permalink
scripts/snapshot_update_pr: add result of enumerate cache job
Browse files Browse the repository at this point in the history
  • Loading branch information
croissanne committed Jul 18, 2024
1 parent 67420b0 commit 4a6bb03
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/scripts/snapshot_update_pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ pushd "$REPO" || exit 2

if [ -e ./tools/check-snapshots ]; then
echo "Checking snapshots..."
./tools/check-snapshots --errors-only . || exit 1
CHECK_SNAPSHOT_SUCCEEDED=false
if ./tools/check-snapshots --errors-only .; then
CHECK_SNAPSHOT_SUCCEEDED=true
fi
fi

# Open PR with updated Schutzfile
Expand All @@ -27,8 +30,14 @@ git commit -m "schutzfile: Update snapshots to ${SUFFIX}"
git push https://"$GITHUB_TOKEN"@github.com/schutzbot/"$REPO".git

cat <<EOF > "body"
Results of the snapshot jobs:
Job(s) succeeded: $JOBS_SUCCEEDED
Job(s) failed: $JOBS_FAILED
If these are false, rebuild the enumerate cache manually:
Enumerate cache job succeeded: $ENUMERATE_CACHE_SUCCEEDED
Check snapshot succeeded: $CHECK_SNAPSHOT_SUCCEEDED
Workflow run: https://github.com/osbuild/rpmrepo/actions/runs/$WORKFLOW_RUN
EOF

Expand Down

0 comments on commit 4a6bb03

Please sign in to comment.