Skip to content

Fixes error related to restock alerts #447

Fixes error related to restock alerts

Fixes error related to restock alerts #447

Workflow file for this run

name: branch-deploy
on:
issue_comment:
types: [ created ]
# Permissions needed for reacting and adding comments for IssueOps commands
permissions:
pull-requests: write
deployments: write
contents: write
checks: read
statuses: read
jobs:
deploy:
name: deploy
if: ${{ github.event.issue.pull_request }} # only run on pull request comments
runs-on: ubuntu-latest
environment: production-secrets
steps:
- name: branch-deploy
id: branch-deploy
uses: github/branch-deploy@v10
with:
admins: the-hideout/core-contributors
admins_pat: ${{ secrets.BRANCH_DEPLOY_ADMINS_PAT }}
environment_targets: production
sticky_locks: "true"
- name: checkout
if: steps.branch-deploy.outputs.continue == 'true'
uses: actions/checkout@v4
with:
ref: ${{ steps.branch-deploy.outputs.sha }}
- uses: actions/[email protected]
if: steps.branch-deploy.outputs.continue == 'true'
with:
node-version-file: .node-version
cache: 'npm'
- name: install dependencies
if: steps.branch-deploy.outputs.continue == 'true'
run: npm install
- name: register slash commands
if: steps.branch-deploy.outputs.continue == 'true'
env:
NODE_ENV: ci
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }}
run: node deploy-commands.mjs
- name: deploy to railway
if: steps.branch-deploy.outputs.continue == 'true'
run: npm run deploy
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}