fix: vote color updates on verify reviews page #3
Workflow file for this run
This file contains 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: Remove staging | |
on: | |
pull_request: | |
types: | |
- closed | |
# use pr number for group instead of github.ref because ref will be main branch when the PR closes which is not a unique group for the PR | |
# group should match with deploy-staging workflow so those don't run concurrently (if someone closes/reopens a PR) | |
concurrency: | |
group: staging-${{ github.event.pull_request.number }} | |
jobs: | |
clean-up-pr: | |
runs-on: ubuntu-latest | |
# don't run on PRs from forks | |
if: github.event.pull_request.head.repo.full_name == github.repository | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: ./.github/actions/setup-pnpm | |
- name: Install Dependencies | |
run: pnpm install | |
env: | |
HUSKY: 0 | |
- name: Remove staging | |
run: pnpm sst remove --stage staging-${{ github.event.pull_request.number }} | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: Deactivate deployment | |
uses: strumwolf/[email protected] | |
with: | |
environment: staging-${{ github.event.pull_request.number }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
onlyDeactivateDeployments: true |