Update Google Cloud Functions (daily) #379
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: Update Google Cloud Functions (daily) | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 15 * * *' | |
jobs: | |
update-neco-dev: | |
name: Update neco-dev project | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: google-github-actions/auth@v1 | |
with: | |
credentials_json: ${{ secrets.NECO_DEV_SERVICE_ACCOUNT }} | |
- uses: google-github-actions/setup-gcloud@v1 | |
- run: make -f Makefile.dctest delete-function | |
continue-on-error: true | |
- run: make -f Makefile.dctest deploy-function | |
- run: make -f Makefile.slack delete-function | |
continue-on-error: true | |
- run: make -f Makefile.slack deploy-function | |
update-neco-test: | |
name: Update neco-test project | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: google-github-actions/auth@v1 | |
with: | |
credentials_json: ${{ secrets.NECO_TEST_SERVICE_ACCOUNT }} | |
- uses: google-github-actions/setup-gcloud@v1 | |
- run: make -f Makefile.instancedel delete-extend-function | |
continue-on-error: true | |
- run: make -f Makefile.instancedel delete-shutdown-function | |
continue-on-error: true | |
- run: make -f Makefile.instancedel deploy-extend-function | |
- run: make -f Makefile.instancedel deploy-shutdown-function |