Update modules #29
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
name: Update modules | |
on: | |
workflow_dispatch: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
# if: ${{ contains(github.event.head_commit.message, 'Trigger from Awesome Repo') }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: "npm" | |
cache-dependency-path: ./package-lock.json | |
- name: Install dependencies | |
run: npm install | |
- name: Build | |
run: npm run modules | |
- name: GIT commit and push all changed files | |
env: | |
CI_COMMIT_MESSAGE: Deploy moleculerjs/site to github.com/moleculerjs/site.git:master | |
CI_COMMIT_AUTHOR: Continuous Integration | |
run: | | |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" | |
git config --global user.email "[email protected]" | |
git pull | |
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}" || echo "ignore committing" | |
git push |