2022-01-13 19:14:30 +00:00
|
|
|
name: Check app updates
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-04-10 08:01:36 +00:00
|
|
|
branches: [ main, v2, v3, v3-dev ]
|
2022-01-13 19:14:30 +00:00
|
|
|
pull_request:
|
2022-04-10 08:01:36 +00:00
|
|
|
branches: [ main, v2, v3, v3-dev ]
|
2022-01-13 19:14:30 +00:00
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 * * * *"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Check for updates
|
|
|
|
run: |
|
|
|
|
export GITHUB_TOKEN="${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
git clone https://github.com/runcitadel/dev-tools
|
|
|
|
cd dev-tools
|
|
|
|
yarn && yarn tsc
|
2022-03-05 20:18:36 +00:00
|
|
|
yarn citadel-dev --consumerkey ${{ secrets.TWITTER_CONSUMER_API_KEY }} --consumersecret ${{ secrets.TWITTER_CONSUMER_API_SECRET }} --accesstoken ${{ secrets.TWITTER_ACCESS_TOKEN }} --accesstokensecret ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }} appcheck -d ../apps
|
2022-01-13 19:14:30 +00:00
|
|
|
cd ..
|
|
|
|
rm -rf dev-tools
|
|
|
|
git config --global user.name "GitHub Actions"
|
|
|
|
git config --global user.email "actions@github.com"
|
2022-01-14 06:37:32 +00:00
|
|
|
git commit -a -m "Update apps" || true
|
2022-01-13 19:14:30 +00:00
|
|
|
git push
|