Merge pull request #2574 from techmatters/CHI-3056-make_weekly_deploy… #115
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
# Copyright (C) 2021-2023 Technology Matters | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see https://www.gnu.org/licenses/. | ||
name: Flex Aselo Development Deploy | ||
# Controls when the action will run. | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
self-hosted-deploy: | ||
description: If set to true, we will point the account at our s3 hosted version of the plugin rather than uploading it to Twilio. | ||
type: boolean | ||
schedule: | ||
- cron: 0 0 * * 0 | ||
jobs: | ||
env: | ||
# Always use self-hosted deploys for cases where the action is triggered by something other than a user's manual intervention | ||
SELF_HOSTED_DEPLOY: ${{ github.event_name != 'workflow_dispatch' }} && 'true' || ${{ inputs.self-hosted-deploy }} | ||
deploy: | ||
uses: ./.github/workflows/flex-deploy.yml | ||
secrets: inherit | ||
with: | ||
helpline_code: AS | ||
environment_code: development | ||
self-hosted-deploy: ${{ env.SELF_HOSTED_DEPLOY }} |