chore(deps): bump qs from 6.13.0 to 6.15.0 in the npm_and_yarn group across 1 directory #298
Workflow file for this run
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: Create/Delete Branch for Pull Request | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - closed | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| setup: | |
| name: Setup | |
| outputs: | |
| branch: ${{ steps.branch_name.outputs.current_branch }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Get branch name | |
| id: branch_name | |
| uses: tj-actions/branch-names@v9 | |
| create_neon_branch: | |
| name: Create Neon Branch | |
| outputs: | |
| db_url: ${{ steps.create_neon_branch_encode.outputs.db_url }} | |
| db_url_with_pooler: ${{ steps.create_neon_branch_encode.outputs.db_url_with_pooler }} | |
| needs: setup | |
| if: | | |
| github.event_name == 'pull_request' && ( | |
| github.event.action == 'synchronize' | |
| || github.event.action == 'opened' | |
| || github.event.action == 'reopened') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Create Neon Branch | |
| id: create_neon_branch | |
| uses: neondatabase/create-branch-action@v6 | |
| with: | |
| project_id: ${{ vars.NEON_PROJECT_ID }} | |
| branch_name: preview/pr-${{ github.event.number }}-${{ needs.setup.outputs.branch }} | |
| api_key: ${{ secrets.NEON_API_KEY }} | |
| # Uncomment to run database migrations | |
| # - name: Run Migrations | |
| # run: npm run db:migrate | |
| # env: | |
| # # to use pooled connection | |
| # DATABASE_URL: "${{ steps.create_neon_branch.outputs.db_url_with_pooler }}" | |
| # # OR to use unpooled connection | |
| # # DATABASE_URL: "${{ steps.create_neon_branch.outputs.db_url }}" | |
| # Uncomment to post schema diff as a comment on the PR | |
| # - name: Post Schema Diff Comment to PR | |
| # uses: neondatabase/schema-diff-action@v1 | |
| # with: | |
| # project_id: ${{ vars.NEON_PROJECT_ID }} | |
| # compare_branch: preview/pr-${{ github.event.number }}-${{ needs.setup.outputs.branch }} | |
| # api_key: ${{ secrets.NEON_API_KEY }} | |
| delete_neon_branch: | |
| name: Delete Neon Branch | |
| needs: setup | |
| if: github.event_name == 'pull_request' && github.event.action == 'closed' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Delete Neon Branch | |
| uses: neondatabase/delete-branch-action@v3 | |
| with: | |
| project_id: ${{ vars.NEON_PROJECT_ID }} | |
| branch: preview/pr-${{ github.event.number }}-${{ needs.setup.outputs.branch }} | |
| api_key: ${{ secrets.NEON_API_KEY }} |