This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add changes for v1 and documentation
- Loading branch information
Unai Abrisketa
committed
Aug 8, 2022
1 parent
efc5925
commit 1b65029
Showing
1 changed file
with
28 additions
and
23 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,39 +27,44 @@ inputs: | |
runs: | ||
using: composite | ||
steps: | ||
- run: | | ||
HEROKU_API_KEY="${{ inputs.heroku_api_key }}" | ||
echo "HEROKU_API_KEY=${HEROKU_API_KEY}" >> $GITHUB_ENV | ||
- run: heroku maintenance:on --app ${{ inputs.heroku_app_name }} | ||
- shell: bash | ||
run: | | ||
HEROKU_API_KEY="${{ inputs.heroku_api_key }}" | ||
echo "HEROKU_API_KEY=${HEROKU_API_KEY}" >> $GITHUB_ENV | ||
- shell: bash | ||
run: heroku maintenance:on --app ${{ inputs.heroku_app_name }} | ||
- uses: akhileshns/[email protected] | ||
with: | ||
heroku_api_key: ${{ inputs.heroku_api_key }} | ||
heroku_app_name: ${{ inputs.heroku_app_name }} | ||
heroku_email: ${{ inputs.heroku_email }} | ||
branch: ${{ inputs.heroku_branch }} | ||
team: ${{ inputs.heroku_team }} | ||
- run: heroku maintenance:off --app ${{ inputs.heroku_app_name }} | ||
- shell: bash | ||
run: heroku maintenance:off --app ${{ inputs.heroku_app_name }} | ||
if: failure() | ||
- run: heroku run rails db:migrate --app ${{ inputs.heroku_app_name }} | ||
- run: heroku maintenance:off --app ${{ inputs.heroku_app_name }} | ||
- shell: bash | ||
run: heroku run rails db:migrate --app ${{ inputs.heroku_app_name }} | ||
- shell: bash | ||
run: heroku maintenance:off --app ${{ inputs.heroku_app_name }} | ||
if: success() | ||
- uses: ePages-de/action-mattermost-notify@t42-deploy | ||
with: | ||
webhook-url: ${{ inputs.mattermost_webhook_url }} | ||
username: ${{ inputs.mattermost_username }} | ||
github-job: ${{ inputs.github_job }} | ||
github-workflow: ${{ inputs.github_workflow }} | ||
repository: ${{ inputs.github_repository }} | ||
run-id: ${{ inputs.github_run_id }} | ||
success-or-failure: failure | ||
with: | ||
webhook-url: ${{ inputs.mattermost_webhook_url }} | ||
username: ${{ inputs.mattermost_username }} | ||
github-job: ${{ inputs.github_job }} | ||
github-workflow: ${{ inputs.github_workflow }} | ||
repository: ${{ inputs.github_repository }} | ||
run-id: ${{ inputs.github_run_id }} | ||
success-or-failure: failure | ||
if: failure() | ||
- uses: ePages-de/action-mattermost-notify@t42-deploy | ||
with: | ||
webhook-url: ${{ inputs.mattermost_webhook_url }} | ||
username: ${{ inputs.mattermost_username }} | ||
github-job: ${{ inputs.github_job }} | ||
github-workflow: ${{ inputs.github_workflow }} | ||
repository: ${{ inputs.github_repository }} | ||
run-id: ${{ inputs.github_run_id }} | ||
success-or-failure: success | ||
with: | ||
webhook-url: ${{ inputs.mattermost_webhook_url }} | ||
username: ${{ inputs.mattermost_username }} | ||
github-job: ${{ inputs.github_job }} | ||
github-workflow: ${{ inputs.github_workflow }} | ||
repository: ${{ inputs.github_repository }} | ||
run-id: ${{ inputs.github_run_id }} | ||
success-or-failure: success | ||
if: success() |