Generate circle.png #3106
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: Generate circle.png | |
on: | |
schedule: | |
- cron: '0 */3 * * *' | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
github_personal_pipeline: | |
name: GitHub Personal Pipeline | |
runs-on: ubuntu-latest | |
steps: | |
- name: main | |
uses: hooopo/oh-my-github-pipeline@main | |
with: | |
access-token: ${{ secrets.ACCESS_TOKEN || secrets.GITHUB_TOKEN }} | |
database-url: ${{ secrets.DATABASE_URL }} | |
user-login: ${{ secrets.USER_LOGIN || github.repository_owner }} | |
run: | |
name: Generate circle.png | |
needs: github_personal_pipeline | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
- name: Install dependencies | |
run: yarn install | |
- name: Update source code | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
run: yarn build | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v9 | |
with: | |
message: 'sync circle.png' | |
committer_name: GitHub Actions | |
committer_email: actions@github.com | |
add: '*.png' |