.github/workflows/compile.yml #457386
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
schedule: | |
- cron: '*/5 * * * *' | |
repository_dispatch: | |
types: [start-build-workflow] | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build Css | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
- name: Install Dependencies | |
run: npm install @actions/core mongodb fs | |
- name: Build | |
env: | |
MONGODB_URI: ${{secrets.MONGODB_URI}} | |
uses: ./ | |
id: build | |
- name: push Css | |
run: | | |
git config user.name "Compiler" | |
git config user.email "[email protected]" | |
git add . || true | |
git commit -m "Build" && git push || true |