cron to review acceptances (develop) #21
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: "Channel Invites Acceptances (develop)" | |
run-name: "cron to review acceptances (develop)" | |
on: | |
schedule: | |
- cron: "0 0 * * 0" | |
jobs: | |
cron: | |
runs-on: "ubuntu-latest" | |
env: | |
INVITE_PROD: ${{ secrets.ST_INVITE_PRODUCTION }} | |
INVITE_DEV: ${{ secrets.ST_INVITE_DEVELOP }} | |
ST_TOKEN: ${{ secrets.ST_PAT }} | |
steps: | |
- name: "setup smartthings cli" | |
uses: "actions/setup-node@v3" | |
with: | |
node-version: "20.9.0" | |
- run: "npm install --global @smartthings/[email protected]" | |
- name: "setup python" | |
uses: "actions/setup-python@v3" | |
with: | |
python-version: 3.11 | |
- name: "update dev channel information" | |
uses: "actions/checkout@v3" | |
with: | |
ref: "develop" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
- run: | | |
git config user.email "erickvneri@github"; | |
git config user.name "erickvneri"; | |
./scripts/track_acceptances.sh $INVITE_DEV $ST_TOKEN && \ | |
git add README.md && \ | |
git commit -m "cron: update acceptances count" && \ | |
git push; | |
- name: "update production channel information" | |
uses: "actions/checkout@v3" | |
with: | |
ref: "main" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
- run: | | |
git config user.email "erickvneri@github"; | |
git config user.name "erickvneri"; | |
./scripts/track_acceptances.sh $INVITE_PROD $ST_TOKEN && \ | |
git add README.md && \ | |
git commit -m "cron: update acceptances count" && \ | |
git push; |