-
Notifications
You must be signed in to change notification settings - Fork 198
49 lines (43 loc) · 1.19 KB
/
update-dev.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
name: update-dev
on:
workflow_run:
workflows:
- Build Website - JSON
types:
- completed
branches:
- master
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
update-dev:
runs-on: ubuntu-latest
if: >-
${{
github.event_name != 'workflow_run' ||
(
github.event_name == 'workflow_run' &&
github.event.workflow_run.event == 'push'
)
}}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: 'dev'
- name: Nightly Merge
env:
MERGE_ARGS: --verbose --no-ff --allow-unrelated-histories
CONFIG_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
CONFIG_USERNAME: github-actions[bot]
run: |
git config --global user.email $CONFIG_EMAIL
git config --global user.name $CONFIG_USERNAME
git remote set-url origin https://${{ secrets.NIGHTLY_TOKEN }}@github.com/PennyLaneAI/qml.git
git checkout -b update-dev-test-branch
git push -u origin
exit 0
# git fetch origin master
# git merge $MERGE_ARGS origin/master
# git push