Skip to content

Commit

Permalink
fix: add env check for prod (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
araphiel-nf authored Jan 24, 2024
1 parent 174821e commit 37281a4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/deploy-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,19 @@ jobs:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout ${{ github.event.inputs.tag }}
- name: Check environment
run: |
if [[ "${{ github.event.inputs.environment }}" == "prod" ]]; then
echo "Cannot run this job with 'prod' environment"
exit 1
fi

- name: Checkout
uses: actions/checkout@v4

- name: Get Tag
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT

outputs:
version: ${{ steps.get_version.outputs.VERSION }}
Expand Down

0 comments on commit 37281a4

Please sign in to comment.