Skip to content

Commit f2fbb71

Browse files
ci: show kernel version in tag name
1 parent 55874ba commit f2fbb71

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build
33
on:
44
push:
55
schedule:
6-
- cron: "0 0 * * 0"
6+
- cron: 0 0 * * 6,0
77

88
env:
99
BBR_REPO: google/bbr
@@ -19,7 +19,7 @@ jobs:
1919
FILE: commit
2020
outputs:
2121
commit: ${{ steps.check.outputs.commit }}
22-
hit: ${{ steps.cache.outputs.cache-hit == 'true' }}
22+
hit: ${{ steps.cache.outputs.cache-hit }}
2323
steps:
2424
- name: Check
2525
id: check
@@ -33,12 +33,12 @@ jobs:
3333
key: ${{ steps.check.outputs.commit }}
3434

3535
- name: Save
36-
if: steps.cache.outputs.cache-hit != 'true'
36+
if: '!steps.cache.outputs.cache-hit'
3737
run: echo ${{ steps.check.outputs.commit }} | tee ${{ env.FILE }}
3838

3939
build:
4040
needs: check
41-
if: needs.check.outputs.hit == 'false'
41+
if: '!needs.check.outputs.hit'
4242
runs-on: ubuntu-latest
4343
container: ghcr.io/waterlemons2k/linux-deps:buster
4444
steps:
@@ -52,14 +52,14 @@ jobs:
5252
run: |
5353
curl -fLO https://github.com/${{ github.repository }}/raw/${{ github.sha }}/{certs/debian-uefi-certs.pem,configs/.config}
5454
55-
echo "DATE=$(date +%F)" >> "$GITHUB_ENV"
55+
echo "TAG=$(make kernelversion)_$(date -I)" >> "$GITHUB_ENV"
5656
5757
- name: Build
5858
run: make -j$(nproc) LOCALVERSION= bindeb-pkg
5959

6060
- name: Release
6161
uses: softprops/action-gh-release@v2
6262
with:
63-
tag_name: ${{ env.DATE }}
63+
tag_name: ${{ env.TAG }}
6464
body: Based on google/bbr@${{ needs.check.outputs.commit }}.
6565
files: ../*.deb

0 commit comments

Comments
 (0)