-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(release): Fix release credentials (#23)
- Loading branch information
1 parent
ca3ad78
commit 3cf3f59
Showing
1 changed file
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [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] | ||
|