File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -61,12 +61,22 @@ jobs:
61
61
- helloworld
62
62
steps :
63
63
64
- - run : >-
65
- echo short_commit=$(cut -b 1-7 <<<$GITHUB_SHA) >> $GITHUB_ENV
66
- - run : env | sort
67
-
68
64
- uses : actions/checkout@v3
65
+ with :
66
+ submodules : ' true'
67
+ token : ${{ secrets.ACCESS_TOKEN }}
68
+
69
+ - id : get_commit_ids
70
+ run : |-
71
+ set -x
72
+ echo short_commit=$(cut -b 1-7 <<<$GITHUB_SHA) >> $GITHUB_OUTPUT
73
+ echo scripts_short_commit=$(git submodule status scripts | awk '{substr($1,1,7)}') >> $GITHUB_OUTPUT
69
74
75
+ - run : |-
76
+ echo ${{ steps.get_commit_ids.outputs.short_commit }}
77
+ echo ${{ steps.get_commit_ids.outputs.scripts_short_commit }}
78
+
79
+
70
80
- uses : docker/setup-buildx-action@v3
71
81
with :
72
82
driver : docker
91
101
default.args.git_tags=${{ github.ref_name }}
92
102
default.args.git_build_time=${{ github.event.head_commit.timestamp }}
93
103
default.tags=ghcr.io/${{ github.repository }}:${{ github.ref_name }}
94
- default.tags=ghcr.io/${{ github.repository }}:${{ env.short_commit }}
95
104
96
105
- name : Inspect image
97
106
run : >-
You can’t perform that action at this time.
0 commit comments