Update builder.yml
This commit is contained in:
1 parent
f1a4a4c6e9
commit
4852f4b94b
1 file changed
+18
-18
@@ -78,8 +78,8 @@ jobs:
|
||||
make -j$(nproc) || make -j1 || make -j1 V=s
|
||||
echo "status=success" >> $GITHUB_OUTPUT
|
||||
grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/' > DEVICE_NAME
|
||||
[ -s DEVICE_NAME ] && echo "DEVICE_NAME=_$(cat DEVICE_NAME)" >> $GITHUB_ENV
|
||||
echo "FILE_DATE=_$(date +"%Y%m%d%H%M")" >> $GITHUB_ENV
|
||||
[ -s DEVICE_NAME ] && echo "DEVICE_NAME=$(cat DEVICE_NAME)" >> $GITHUB_ENV
|
||||
echo "FILE_DATE=$(date +"%Y%m%d%H%M")" >> $GITHUB_ENV
|
||||
|
||||
- name: Check space usage
|
||||
if: (!cancelled())
|
||||
@@ -89,7 +89,7 @@ jobs:
|
||||
uses: actions/upload-artifact@main
|
||||
if: steps.compile.outputs.status == 'success' && env.UPLOAD_BIN_DIR == 'true'
|
||||
with:
|
||||
name: OpenWrt_bin${{ env.DEVICE_NAME }}${{ env.FILE_DATE }}
|
||||
name: openwrt_bin_${{ env.DEVICE_NAME }}_${{ env.FILE_DATE }}
|
||||
path: openwrt/bin
|
||||
|
||||
- name: Organize files
|
||||
@@ -105,7 +105,7 @@ jobs:
|
||||
uses: actions/upload-artifact@main
|
||||
if: steps.organize.outputs.status == 'success' && !cancelled()
|
||||
with:
|
||||
name: openwrt_${{ env.DEVICE_NAME }}_${{ env.FILE_DATE }}
|
||||
name: openwrt_firmware_${{ env.DEVICE_NAME }}_${{ env.FILE_DATE }}
|
||||
path: ${{ env.FIRMWARE }}
|
||||
|
||||
- name: Generate release tag
|
||||
@@ -123,21 +123,21 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ steps.tag.outputs.release_tag }}-${{ inputs.source }}
|
||||
tag_name: ${{ steps.tag.outputs.release_tag }}
|
||||
body_path: release.txt
|
||||
files: ${{ env.FIRMWARE }}/*
|
||||
|
||||
- name: Delete workflow runs
|
||||
uses: Mattraks/delete-workflow-runs@main
|
||||
with:
|
||||
retain_days: 0
|
||||
keep_minimum_runs: 2
|
||||
# - name: Delete workflow runs
|
||||
# uses: Mattraks/delete-workflow-runs@main
|
||||
# with:
|
||||
# retain_days: 0
|
||||
# keep_minimum_runs: 2
|
||||
|
||||
- name: Remove old Releases
|
||||
uses: dev-drprasad/delete-older-releases@master
|
||||
if: env.UPLOAD_RELEASE == 'true' && !cancelled()
|
||||
with:
|
||||
keep_latest: 3
|
||||
delete_tags: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# - name: Remove old Releases
|
||||
# uses: dev-drprasad/delete-older-releases@master
|
||||
# if: env.UPLOAD_RELEASE == 'true' && !cancelled()
|
||||
# with:
|
||||
# keep_latest: 3
|
||||
# delete_tags: true
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in new issue
Block a user