-
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (41 loc) · 1.26 KB
/
release.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
## Periodically runs a bash script.
name: Release Latest Versions
on:
workflow_dispatch:
inputs:
should_rerelease:
description: 'Repack the latest version of the package'
required: false
default: false
type: boolean
dry_run:
description: 'Dry run: Run the script without pushing changes'
required: false
default: false
type: boolean
from_version:
description: 'The version to start from'
required: false
default: '1.0.0'
type: string
schedule:
- cron: '0 */12 * * *'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Release Latest Versions
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
if [ "${{ inputs.should_rerelease }}" = "true" ]; then
SHOULD_RERELEASE="--should-rerelease"
fi
if [ "${{ inputs.dry_run }}" = "true" ]; then
DRY_RUN="--dry-run"
fi
bash -x ./release-latest-versions.sh $SHOULD_RERELEASE $DRY_RUN --from-version=${{ inputs.from_version }}