@@ -144,21 +144,12 @@ jobs:
144
144
with :
145
145
fetch-depth : 0
146
146
147
- - name : Get sha-commit from tag
148
- id : get_baseline_sha
149
- shell : bash
150
- run : |
151
- latest_sha=$(git rev-list --tags --max-count=1)
152
- echo "sha_tag=$latest_sha" >> "$GITHUB_OUTPUT";
153
-
154
147
- name : Install Dbus
155
148
if : ${{ !matrix.cross && startsWith(matrix.os, 'ubuntu-') }}
156
149
run : sudo apt update && sudo apt install libdbus-1-dev pkg-config
157
150
158
- - name : Checkout source code to specific tag
151
+ - name : Checkout source code
159
152
uses : actions/checkout@v4
160
- with :
161
- ref : ${{ steps.get_baseline_sha.outputs.sha_tag }}
162
153
163
154
- name : Install Nightly Rust Toolchain
164
155
uses : dtolnay/rust-toolchain@master
@@ -191,10 +182,14 @@ jobs:
191
182
192
183
- name : Generate completions
193
184
if : ${{ matrix.os == 'ubuntu-latest' && matrix.target == 'x86_64-unknown-linux-gnu' }}
185
+ env :
186
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
187
+ COMMIT_MSG : |
188
+ generate shell completions
194
189
run : |
195
- ./target/x86_64-unknown-linux-gnu/release/lcode --generate=zsh | tee ./completions/_lcode
196
- ./target/x86_64-unknown-linux-gnu/release/lcode --generate=bash | tee ./completions/lcode.bash
197
- ./target/x86_64-unknown-linux-gnu/release/lcode --generate=fish | tee ./completions/lcode.fish
190
+ ./target/x86_64-unknown-linux-gnu/release/lcode --generate=zsh > ./completions/_lcode
191
+ ./target/x86_64-unknown-linux-gnu/release/lcode --generate=bash > ./completions/lcode.bash
192
+ ./target/x86_64-unknown-linux-gnu/release/lcode --generate=fish > ./completions/lcode.fish
198
193
199
194
git config user.email "actions@github"
200
195
git config user.name "Github Actions"
0 commit comments