semver.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Whenever commits are merged to main, update or create a PR that bumps the version
  2. # Tracks if changes are semver compatible
  3. # Most likely the changes aren't semver compatible
  4. #
  5. # We want to have a standing "major" update PR and a standing "minor" update PR where fixes are backported
  6. #
  7. # Whenever a PR is made, we want to comment on it:
  8. # - semver compatibility
  9. # - if it's a fix, it should be backported to the minor update PR
  10. on:
  11. push:
  12. branches:
  13. - master
  14. # Generate the minor bump
  15. jobs:
  16. update_routes:
  17. runs-on: ubuntu-latest
  18. steps:
  19. # Check out the repo, but don't persist credentials, so github uses the GITHUB_TOKEN
  20. - uses: actions/checkout@v2
  21. with:
  22. persist-credentials: false
  23. # Run cargo workspaces version to generate the version bump PR
  24. - run: "date > datetime.txt" # create or update a test.txt file
  25. # And then create the PR
  26. - uses: gr2m/create-or-update-pull-request-action@v1
  27. env:
  28. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  29. with:
  30. title: "My pull request title"
  31. body: "My pull request body"
  32. branch: "my-pull-request-base-branch"
  33. path: "lib/"
  34. commit-message: "My commit message for uncommitted changes in lib/ folder"
  35. author: "Lorem J. Ipsum <lorem@example.com>"
  36. labels: label1, label2
  37. assignees: user1, user2
  38. reviewers: user1, user2
  39. team_reviewers: team1, team2
  40. auto-merge: squash
  41. update-pull-request-title-and-body: false
  42. # Generate the major bump