File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 19
19
steps :
20
20
- uses : actions/checkout@v3
21
21
- uses : dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d # pin@v1
22
+ -
uses :
subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # [email protected]
23
+
22
24
- run : dart format .
23
25
- run : dart fix --apply
24
26
27
+ # Source: https://stackoverflow.com/a/58035262
25
28
- name : Extract branch name
26
29
shell : bash
27
30
run : echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
30
33
# actions/checkout fetches only a single commit in a detached HEAD state. Therefore
31
34
# we need to pass the current branch, otherwise we can't commit the changes.
32
35
# GITHUB_HEAD_REF is the name of the head branch. GitHub Actions only sets this for PRs.
33
- - run : ./scripts/commit-formatted-code.sh ${{ steps.extract_branch.outputs.branch }}
36
+ - name : Commit & push
37
+ run : ./scripts/commit-formatted-code.sh ${{ steps.extract_branch.outputs.branch }}
You can’t perform that action at this time.
0 commit comments