Skip to content

Commit

Permalink
Update precommit.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thunderbirdgit authored Aug 28, 2024
1 parent 6849a12 commit 6cef557
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,7 @@ on:

jobs:
determine-branch:
runs-on: ubuntu-latest
outputs:
branch_name: ${{ steps.get_branch.outputs.branch_name }}
steps:
- name: Get Branch Name
id: get_branch
run: |
if [ "${{ github.event_name }}" == "push" ]; then
branch_name=${GITHUB_REF#refs/heads/}
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
elif [ "${{ github.event_name }}" == "pull_request" ]; then
echo "branch_name=${{ github.head_ref }}" >> $GITHUB_OUTPUT
fi
- name: Print Final Branch Name
run: |
echo "Branch Name: ${{ steps.get_branch.outputs.branch_name }}"
uses: thunderbirdgit/gh-actions-wf/.github/workflows/get-branch-name.yml@main

get-short-sha:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 6cef557

Please sign in to comment.