Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

Do not remove movies on guild quit as people may be troubleshooting. #60

Do not remove movies on guild quit as people may be troubleshooting.

Do not remove movies on guild quit as people may be troubleshooting. #60

name: Deploy to Google Compute Engine
on:
push:
branches:
- master
workflow_run:
workflows:
- Manual Review
types:
- completed
jobs:
check-version:
name: Check If Version Bumped
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.check.outputs.changed }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Check if version has been updated
id: check
uses: EndBug/version-check@v2
with:
diff-search: true
file-name: 'Discord Bot/package.json'
- name: Log changes
if: steps.check.outputs.changed == 'true'
run: 'echo "Update in version: ${{steps.check.outputs.changed}}"'
deploy_if_updated:
name: Deploy to Prod
needs: check-version
if: needs.check-version.outputs.changed == 'true'
uses: ./.github/workflows/deployment_steps.yml
secrets: inherit
with:
environment: Automated
manual_deploy:
name: Manual Deployment if no version bump
needs: check-version
if: needs.check-version.outputs.changed != 'true'
uses: ./.github/workflows/deployment_steps.yml
secrets: inherit
with:
environment: Production