This commit is contained in:
@@ -20,8 +20,6 @@ runs:
|
||||
# Extract PR info using curl (Gitea API is similar to GitHub)
|
||||
PR_INFO=$(curl -s -H "Authorization: token ${{ gitea.token }}" "${{ gitea.api_url }}/repos/${{ gitea.repository }}/pulls/${{ gitea.event.issue.number }}")
|
||||
|
||||
echo "$PR_INFO"
|
||||
|
||||
# Extract branch name from JSON response
|
||||
BRANCH_NAME=$(echo "$PR_INFO" | jq -r '.head.ref')
|
||||
|
||||
|
||||
@@ -24,6 +24,9 @@ jobs:
|
||||
id: branch_name
|
||||
uses: ./.gitea/actions/getTagSafeRef
|
||||
|
||||
- name: print sanitized name
|
||||
run: 'echo ${{ steps.branch_name.outputs.branch_name }}'
|
||||
|
||||
# - name: Print result
|
||||
# run: echo "Branch name: ${{ steps.branch_name.outputs.branch_name }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user