Skip to content

chore: update ci workflow to support - skip deploy #25

chore: update ci workflow to support - skip deploy

chore: update ci workflow to support - skip deploy #25

name: Rebuild prod
on:
push:
branches:
- master
jobs:
deploy:
if: ${{ !contains(github.event.commits[0].message, 'skip deploy') }}
name: "Deploy Prod"
runs-on: ubuntu-latest
steps:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "18.x"
- name: Redeployment products
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GH_TOKEN}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/InjectiveLabs/injective-lists/actions/workflows/deploy.yaml/dispatches \
-d '{"ref":"master","inputs":{}}'
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}