Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Paula-Encinar committed Jan 9, 2025
1 parent cd96715 commit 91c5edb
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,33 @@ jobs:
echo "${{ github.actor }} is a valid Code Owner. Proceeding with the workflow..."
create-pr:
needs: validate-codeowner
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write

steps:
# Paso 2: Autenticar GitHub CLI con el GITHUB_TOKEN
- name: Authenticate GitHub CLI with GITHUB_TOKEN
# Paso 1: Checkout del repositorio
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Asegúrate de clonar todo el historial necesario

# Paso 2: Autenticar GitHub CLI con GITHUB_TOKEN
- name: Authenticate GitHub CLI
run: |
echo "Authenticating GitHub CLI with GITHUB_TOKEN..."
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
# Paso 3: Crear la Pull Request con el GITHUB_TOKEN
# Paso 3: Crear la Pull Request
- name: Create Pull Request
id: create_pr
run: |
PR_OUTPUT=$(gh pr create \
--base main \
--head ${{ github.event.inputs.target_branch }} \
--title "Merge ${{ github.event.inputs.target_branch }} into main" \
--body "This PR was created automatically using GITHUB_TOKEN." \
--body "This PR was created automatically by the workflow." \
--label automerge)
echo "PR created: $PR_OUTPUT"
Expand Down

0 comments on commit 91c5edb

Please sign in to comment.