-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (37 loc) · 1.37 KB
/
update-version.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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}}