-
-
Notifications
You must be signed in to change notification settings - Fork 2
72 lines (62 loc) · 2.11 KB
/
clientapp-update-dependencies-vite.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: ClientApp upgrade dependencies create Vite
on:
workflow_dispatch:
schedule:
- cron: '30 4 15 * *'
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: master
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 18
check-latest: true
- name: 'Update clientapp'
id: clientapp_vite_app_update
working-directory: ./starsky-tools/build-tools
run: npm run clientapp-vite-update
- shell: bash
working-directory: ./starsky
id: files_changed
run: |
git status
git status --porcelain
if [[ `git status --porcelain` ]]; then
echo "There are files not committed yet"
echo "CHANGED=true" >> $GITHUB_OUTPUT
else
echo "not changed"
echo "CHANGED=false" >> $GITHUB_OUTPUT
fi
- name: Create Pull Request ${{ steps.files_changed.outputs.CHANGED }}
id: cpr
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.WORKFLOW_GITHUB }}
commit-message: 'Update ClientApp'
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
add-paths: |
*
branch: feature/auto_clientapp_vite_app_update
delete-branch: true
title: 'Client App - Vite - Upgrade dependencies'
body: |
## Upgrade Client App to the latest version
- todo: test!
labels: |
dependencies
draft: false
- name: Merge current branch into -> auto_clientapp_vite_app_update
uses: everlytic/branch-merge@1.1.5
if: github.event_name == 'workflow_dispatch' && steps.files_changed.outputs.CHANGED == 'true'
with:
github_token: ${{ secrets.WORKFLOW_GITHUB }}
source_ref: 'master'
target_branch: feature/auto_clientapp_vite_app_update
commit_message_template: '[Automated] Merged {source_ref} into target {target_branch}'