Skip to content

Commit

Permalink
test banch name
Browse files Browse the repository at this point in the history
  • Loading branch information
denrase committed May 16, 2023
1 parent 6997864 commit b3c1faf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,11 @@ jobs:
# actions/checkout fetches only a single commit in a detached HEAD state. Therefore
# we need to pass the current branch, otherwise we can't commit the changes.
# GITHUB_HEAD_REF is the name of the head branch. GitHub Actions only sets this for PRs.
- run: ../scripts/commit-formatted-code.sh $GITHUB_HEAD_REF
if: env.GITHUB_HEAD_REF != null
- name: commit formatted code
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
run: echo $BRANCH_NAME # ../scripts/commit-formatted-code.sh $BRANCH_NAME
if: $BRANCH_NAME != null

- name: dart analyze
uses: invertase/github-action-dart-analyzer@cdd8652b05bf7ed08ffce30f425436780f869f13 # pin@v1
Expand Down

0 comments on commit b3c1faf

Please sign in to comment.