Skip to content

Commit

Permalink
fix(workflows): Merge automated tags through PRs (#844)
Browse files Browse the repository at this point in the history
Approved-by: Antoine Cotten <antoine@unikraft.io>
  • Loading branch information
antoineco committed Oct 2, 2023
2 parents 0b9df40 + 9993720 commit 42635a8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/tag-stable-weekly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,18 @@ jobs:
# Rebase stable on staging
git checkout stable
git rebase staging
git push origin stable
# Create PR with current branch
NEW_BRANCH="unikraft-bot/weekly-tag-${NEW_TAG}"
git checkout -b "${NEW_BRANCH}"
git push origin "${NEW_BRANCH}"
gh pr create --title "chore(bump): KraftKit ${NEW_TAG} bump" --body "Weekly tag: ${NEW_TAG}" --base stable --head "${NEW_BRANCH}" --repo unikraft/kraftkit
# Merge PR and delete branch
gh pr merge --admin --author-email "monkey@unikraft.io" --delete-branch --rebase --repo unikraft/kraftkit
# Tag and push new tag
git checkout stable
git tag -a "$NEW_TAG" -m "KraftKit $NEW_TAG"
git push origin "$NEW_TAG"
env:
Expand Down

0 comments on commit 42635a8

Please sign in to comment.