forked from orange-cloudfoundry/k3s-boshrelease
-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (45 loc) · 1.52 KB
/
create-release-branches.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
44
45
46
47
48
49
name: create-release-branches
on:
workflow_call:
inputs:
force_push:
description: 'Force recreation of release branches from min version'
required: true
type: boolean
default: false
workflow_dispatch:
inputs:
force_push:
description: 'Force recreation of release branches from min version'
required: true
type: boolean
default: false
schedule:
- cron: "30 10 * * 1" # “At 10:30 on Monday.” https://crontab.guru/#30_10_*_*_1
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# GH cli is already pre-install, see https://docs.github.com/en/actions/using-workflows/using-github-cli-in-workflows
- name: Install yq cli
#See https://github.com/marketplace/actions/install-a-binary-from-github-releases
uses: jaxxstorm/[email protected]
with:
repo: mikefarah/yq
tag: v4.34.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # reduce potential rate limiting
- name: create-missing-branches
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FORCE_PUSH: ${{ inputs.force_push}}
run: |
# configure git
git config --global user.name "actions/k3s-boshrelease"
git config --global user.email "<>"
git config --global --add safe.directory /github/workspace
./create-release-branches.bash