Skip to content

API deploy rollback

API deploy rollback #1

name: API deploy rollback
description: Rollback the API deployment to a previous version
on:
workflow_dispatch:
inputs:
version:
description: 'Version Tag to rollback to'
required: true
type: string
jobs:
deploy:
if: ${{ github.ref_name == 'main' }}
uses: ./.github/workflows/reusable-api-deploy.yml

Check failure on line 15 in .github/workflows/api-deploy-rollback.yml

View workflow run for this annotation

GitHub Actions / API deploy rollback

Invalid workflow file

The workflow is not valid. .github/workflows/api-deploy-rollback.yml (Line: 15, Col: 11): Input host is required, but not provided while calling. .github/workflows/api-deploy-rollback.yml (Line: 19, Col: 13): Invalid secret, host is not defined in the referenced workflow.
with:
tag: ${{ inputs.version }}
secrets:
host: ${{ secrets.API_HOST }}