auto add client libs #430
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: auto add client libs | |
on: | |
schedule: | |
- cron: '30 5 * * *' | |
workflow_dispatch: | |
jobs: | |
add-client-libs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 5 | |
token: ${{ secrets.GLOBAL_PAT }} | |
- uses: KittyCAD/ts-actions/[email protected] | |
id: update-readme | |
with: | |
github-token: ${{ secrets.GLOBAL_PAT }} | |
path: './profile/README.md' | |
- name: Check for modified files | |
id: git-check | |
run: echo ::set-output name=modified::$(if git diff-index --ignore-submodules --quiet HEAD --; then echo "false"; else echo "true"; fi) | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
if: steps.git-check.outputs.modified == 'true' | |
with: | |
commit_message: "🔨 DRAGON THOSE PUBLIC CLIENTS AND ACTIONS ⚙️" | |
commit_options: '-s' | |
file_pattern: profile/README.md |