update-version #3433
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow regularly checks for new tags in Betterbird/thunderbird-patches, | |
# runs ./update-version.sh $tag if there is a new tag, commits the result to the | |
# develop branch and creates a PR for merging develop into master. | |
name: update-version | |
on: | |
schedule: | |
- cron: "0 */6 * * *" | |
workflow_dispatch: | |
jobs: | |
job: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
with: | |
path: eu.betterbird.Betterbird | |
ref: master | |
- uses: actions/checkout@v4 | |
with: | |
repository: Betterbird/thunderbird-patches | |
path: thunderbird-patches | |
fetch-depth: 0 | |
# Checks for new upstream tags and updates the manifest if new | |
# tags are available | |
- name: Auto-update to newest tag | |
run: ./eu.betterbird.Betterbird/.github/scripts/auto-update.sh | |
# Creates a PR to merge develop into master if Betterbird has | |
# been updated | |
- name: Create Pull Request | |
if: ${{env.version_updated=='true'}} | |
uses: peter-evans/[email protected] | |
with: | |
path: eu.betterbird.Betterbird | |
branch: update-${{env.new_version}} | |
delete-branch: true | |
commit-message: Update to ${{env.new_version}} | |
title: Update to ${{env.new_version}} | |