Skip to content

Commit

Permalink
fix(release): Fix release credentials (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
juancgalvis authored Jun 18, 2024
1 parent ca3ad78 commit 3cf3f59
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -35,7 +44,7 @@ jobs:
if: github.ref == 'refs/heads/main'
run: npx [email protected]
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/[email protected]
Expand Down

0 comments on commit 3cf3f59

Please sign in to comment.