Merge pull request #226 from koon2120/patch-1 #4316
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: Publish stats | |
on: | |
workflow_dispatch: {} | |
schedule: | |
- cron: "0 1/8 * * *" | |
push: | |
branches: | |
- main | |
jobs: | |
update: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/checkout@v2 | |
with: | |
repository: "wonderfulsoftware/webring-usage-stats" | |
ssh-key: ${{ secrets.WEBRING_USAGE_STATS_DEPLOY_KEY }} | |
path: tmp/webring-usage-stats | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
- run: yarn | |
- run: node automation/usage-publisher/download-data-from-amplitude | |
env: | |
ENCRYPTION_SECRET: ${{ secrets.ENCRYPTION_SECRET }} | |
- run: node automation/usage-publisher | |
- run: cd tmp/webring-usage-stats && git add -A && (git commit -m "$(cat ../webring-usage-stats-commit-message)" || true) && git push | |
env: | |
GIT_COMMITTER_NAME: dtinth-bot | |
GIT_AUTHOR_NAME: dtinth-bot | |
EMAIL: [email protected] |