Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add auto-submit workflow for snapshot/timestamp #556

Merged
merged 3 commits into from Dec 2, 2022

Conversation

asraa
Copy link
Contributor

@asraa asraa commented Dec 1, 2022

Signed-off-by: Asra Ali asraa@google.com

This PR adds an auto-submit bot for the snapshot/timestamp updates. The workflow will still trigger, and then this will run every 6 hours to (1) Check for any outstanding snapshot/timestamp updates (2) Start a review and approve and (3) Attempt to merge.

Fixes #553

cc @haydentherapper

Summary

Release Note

Documentation

Signed-off-by: Asra Ali <asraa@google.com>
Signed-off-by: Asra Ali <asraa@google.com>
Signed-off-by: Asra Ali <asraa@google.com>
/repos/"${GITHUB_REPOSITORY}"/pulls/"${PULL_NUMBER}"/merge \
-f commit_title='Update Snapshot and Timestamp' \
-f commit_message='update snapshot and timestamp'
fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: new line 😬

PULL_NUMBER=$(echo "${UPDATE_PR}" | jq -r '.number')

# Approve PR
curl \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use the gh pr review PR_NUMBER --approve i guess

@cpanato
Copy link
Member

cpanato commented Dec 2, 2022

i wll merge and see if it will work, if not we can follow up on that

@cpanato cpanato merged commit 0c89657 into sigstore:main Dec 2, 2022
@cpanato
Copy link
Member

cpanato commented Dec 2, 2022

i will trigger that manually instead of wait for 6 hours :)

@cpanato
Copy link
Member

cpanato commented Dec 2, 2022

@cpanato
Copy link
Member

cpanato commented Dec 2, 2022

./.github/workflows/scripts/report-failure.sh: line 45: ISSUE_REPOSITORY: unbound variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automate merging of snapshot/timestamp PR
2 participants