DEV Community

Discussion on: Manual trigger with Github Actions

Collapse
 
neilime profile image
Emilien Escalle • Edited

Get a solution to allows to all repository collaborators:

jobs:

  authorize: 
    runs-on: ubuntu-latest

    steps:
    - uses: octokit/request-action@v2.0.0
      with:
        route: GET /repos/:repository/collaborators/${{ github.actor }}
        repository: ${{ github.repository }}
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

  build:
    needs: [authorize]

    runs-on: ubuntu-latest

   steps: 
     - ...
Collapse
 
sabderemane profile image
Sarah Abd • Edited

Nice ! I add it on the post :)