Skip to content

Greens-Organization/sloop

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Sloop

sloop

This action is for the functionality of removing automatic deployments created by vercel or another action.

Attention: It only works if the environment name is the same as the branch.

Usage

steps:
  - name: Checkout
    id: checkout
    uses: actions/checkout@v4

  - name: Run my Action
    id: run-action
    uses: actions/sloop-launch@v1
    with:
      token: ${{ secrets.TOKEN_GITHUB }}
      owner: 'org-name'
      repo: 'repo-name'

  - name: Print Output
    id: output
    run: echo "${{ steps.run-action.outputs.result }}"

How to create the token

You need to create a token to use the action, it must contain the following requirements.

Path in Github:

Settings / Developer settings / Personal access tokens / Fine-grained tokens

Repository access:

  • All repositories or Only select repositories.

Permissions:

  • Administration: Read and write
  • Commit statuses: Read and write
  • Deployments: Read and write
  • Metadata(mandatory): Read-only

Organization permissions:

  • Administration: Read and write