Skip to content

Commit

Permalink
Clean up the manual deployment workflow
Browse files Browse the repository at this point in the history
Fetching the input branch from the fork should also make it
available locally for akhileshns/heroku-deploy.
  • Loading branch information
mihaitodor committed Dec 7, 2023
1 parent fa92180 commit 2b9d90a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/manual_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ jobs:
exit 1
fi
# Fetch the target branch from a fork when not using ${action_repo}
if [[ -n "${{ github.event.inputs.repo }}" && "${{ github.event.inputs.repo }}" != "${action_repo}" ]]; then
git remote add fork "${{ github.event.inputs.repo }}"
git fetch fork "${{ inputs.branch }}"
git reset --hard fork/${{ inputs.branch }}
fi
- uses: akhileshns/heroku-deploy@v3.12.12
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: ${{ inputs.environment == 'prod' && secrets.HEROKU_APP_NAME || secrets.HEROKU_DEV_APP_NAME }}
heroku_email: ${{ secrets.HEROKU_EMAIL }}
dontuseforce: false # Force push to Heroku
branch: main
dontuseforce: false # Always force push to Heroku
branch: ${{ inputs.branch }}

0 comments on commit 2b9d90a

Please sign in to comment.