Fix error in price command #418
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
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/[email protected] | |
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/[email protected] | |
with: | |
ref: ${{ steps.branch-deploy.outputs.ref }} | |
- 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 }} |