forked from CometVisu/CometVisu
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 1.11 KB
/
tag_nightly.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
name: Tag nightly
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 0 * * *'
jobs:
tagger:
runs-on: ubuntu-latest
if: github.repository == 'CometVisu/CometVisu'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install action dependencies
run: npm install
working-directory: ./.github/actions/github
- id: nightly
name: "Create tag on change"
uses: ./.github/actions/github
with:
action: increase-build-tag
options: true nightly
env:
COMMIT_AUTHOR_NAME: CometVisu-CI
COMMIT_AUTHOR_EMAIL: generator@cometvisu.org
NIGHLTY_ONLY: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Trigger build
uses: ./.github/actions/github
with:
action: trigger-build
options: ${{ steps.nightly.outputs.result }}
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }} # does not work with secrets.GITHUB_TOKEN, must be another token with rights for workflows