Skip to content

Commit

Permalink
ci 3
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed Feb 29, 2024
1 parent 0b997b0 commit 65dc4f4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/auto-pr-commend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,17 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- run: echo "${{ github.event.pull_request.head.ref }}"
- run: echo "${{ github.event.issue.pull_request }}"
- run: echo "${{ github.event.issue.pull_request.url }}"

- name: Get Branch Name
id: get-branch
run: |
COMMITS_URL="https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.issue.number }}"
BRANCH=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" $COMMITS_URL | jq -r '.head.ref')
echo "branch=$BRANCH" >> $GITHUB_OUTPUT
- run: echo "${{ steps.get-branch.outputs.branch }}"
# - name: Get Action URL
# id: action-url
# run: echo "url=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 65dc4f4

Please sign in to comment.