Files
letro-ios/.github/workflows/automatic-calendar-version.yml
2025-09-26 17:20:41 +03:00

43 lines
1.4 KiB
YAML

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-26
# Skip in forks
if: github.repository == 'element-hq/element-x-ios'
steps:
- name: Checkout
uses: actions/checkout@v5
- 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/**