diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a4b45f7..ffeac51 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,11 +12,20 @@ on: jobs: build: + if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }} name: Build and test runs-on: ubuntu-latest steps: + - name: Generate a token + id: generate_token + uses: tibdex/github-app-token@v2 + with: + app_id: ${{ secrets.APP_ID_ADMIN_GITHUB }} + private_key: ${{ secrets.APP_PRIVATE_KEY_ADMIN_GITHUB }} - uses: actions/checkout@v4 + with: + token: ${{ steps.generate_token.outputs.token }} # Semantic Release - name: Verify Conventional Commits uses: amannn/action-semantic-pull-request@v5 @@ -35,7 +44,7 @@ jobs: if: github.ref == 'refs/heads/main' run: npx semantic-release@23.0.0 env: - GITHUB_TOKEN: ${{ secrets.RELEASE_P_A_TOKEN }} # debe crear un Personal Access Token + GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} # Elixir - name: Set up Elixir uses: erlef/setup-beam@v1.17.1