Skip to content

Merge pull request #45 from sleepdiary/dependabot/github_actions/acti… #58

Merge pull request #45 from sleepdiary/dependabot/github_actions/acti…

Merge pull request #45 from sleepdiary/dependabot/github_actions/acti… #58

Workflow file for this run

# 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/cache@v3
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@v4
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]"