-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (38 loc) · 1.12 KB
/
main.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
# Build the project
#
# See also:
# Caching workflows: https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows
name: Merge and push
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cache node modules
uses: actions/[email protected]
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: built
- name: Build
uses: docker://ghcr.io/sleepdiary/builder:latest
with:
args: merge-and-push
env:
GIT_AUTHOR_NAME: "Automatic updater [bot]"
GIT_AUTHOR_EMAIL: "[email protected]"
GIT_COMMITTER_NAME: "Automatic updater [bot]"
GIT_COMMITTER_EMAIL: "[email protected]"