Skip to content

Commit

Permalink
Add commands to list fetched branches and commits, and show branch re…
Browse files Browse the repository at this point in the history
…ferences
  • Loading branch information
pasqualesalza committed Dec 20, 2024
1 parent 57119a5 commit 85f02ee
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,20 @@ runs:
BASE_BRANCH_NAME: ${{ inputs.base-branch }}
BASE_FETCH_DEPTH: ${{ env.BASE_FETCH_DEPTH }}
run: git fetch origin ${BASE_BRANCH_NAME} --depth=${BASE_FETCH_DEPTH}

- name: "List fetched branches"
shell: bash
run: git branch -r

- name: "List fetched commits"
shell: bash
run: git log --oneline --decorate --graph --all

- name: "Show HEAD branch reference"
shell: bash
run: git show-ref ${{ inputs.head-branch }}

- name: "Show BASE branch reference"
if: ${{ inputs.head-only == 'false' }}
shell: bash
run: git show-ref ${{ inputs.base-branch }}

0 comments on commit 85f02ee

Please sign in to comment.