-
Notifications
You must be signed in to change notification settings - Fork 19
41 lines (41 loc) · 1.16 KB
/
alpha-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
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: "0 0 * * 3" # runs every wednesday at 00:00 UTC
permissions:
contents: write
name: "Alpha Version"
jobs:
master_check:
runs-on: ubuntu-latest
steps:
- name: Master check
if: github.ref != 'refs/heads/master'
run: |
echo "Alpha version can be released only from master branch"
exit 1
commit_check:
needs: master_check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true
- run: |
new_commit=$(git log $(git describe --tags --abbrev=0)..HEAD --oneline | wc -l)
if [ $new_commit -eq 0 ]; then
echo "No new commits since last version"
exit 1
fi
call-workflow-passing-data:
needs: commit_check
uses: RibirX/rclog/.github/workflows/release-version.yml@main
with:
level: 'alpha'
ref: ${{ github.ref }}
merge_changelog: false
toolchain: stable
secrets:
CRATE_RELEASE_TOKEN: ${{ secrets.CRATE_RELEASE_TOKEN }}
GITHUB_RELEASE_TOKEN: ${{ secrets.RIBIR_RELEASE }}