mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
Automatically open a PR to bump the calver (#4167)
* Update our tools package to Swift 6.1
Also improves the package layout with subdirectories 📁
* Update GenerateSDKMocks to be an Async command.
* Add a tool to bump the project CalVer every month.
* Add a workflow to automatically bump the calendar version.
Note: This only does year & month, the patch is handled by the release script.
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
name: Automatic Calendar Version
|
||||
on:
|
||||
schedule:
|
||||
# At 03:00 UTC every Tuesday in preparation for an RC.
|
||||
# The tool assumes the release is published in 6-days (the following Monday).
|
||||
# Note: Most of these runs will be no-op until the release month changes.
|
||||
- cron: '0 3 * * 2'
|
||||
workflow_dispatch:
|
||||
|
||||
# Bumps the year and month, resetting the patch.
|
||||
# Patch bumps are handled by the release script.
|
||||
jobs:
|
||||
automatic-calendar-version:
|
||||
runs-on: macos-15
|
||||
# Skip in forks
|
||||
if: github.repository == 'element-hq/element-x-ios'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup environment
|
||||
run:
|
||||
source ci_scripts/ci_common.sh && setup_github_actions_environment
|
||||
|
||||
- name: Bump the CalVer if needed
|
||||
run: swift run tools bump-calendar-version
|
||||
|
||||
- name: Create a PR for the new version
|
||||
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e #v7.0.8
|
||||
with:
|
||||
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
||||
author: ElementRobot <releases@riot.im>
|
||||
commit-message: Bump the calendar version ready for the next release
|
||||
title: Bump the calendar version ready for the next release
|
||||
body: |
|
||||
- Version bump
|
||||
labels: pr-build
|
||||
branch: version/bump
|
||||
base: develop
|
||||
add-paths: |
|
||||
*.yml
|
||||
*.xcodeproj
|
||||
@@ -31,6 +31,7 @@ jobs:
|
||||
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e #v7.0.8
|
||||
with:
|
||||
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
|
||||
author: ElementRobot <releases@riot.im>
|
||||
commit-message: Translations update
|
||||
title: Translations update
|
||||
body: |
|
||||
|
||||
Reference in New Issue
Block a user