Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Add changes for v1 and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Unai Abrisketa committed Aug 8, 2022
1 parent efc5925 commit 1b65029
Showing 1 changed file with 28 additions and 23 deletions.
51 changes: 28 additions & 23 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 1b65029

Please sign in to comment.