Skip to content

Commit

Permalink
update@2024-12-24-00-03
Browse files Browse the repository at this point in the history
  • Loading branch information
hong0980 committed Dec 23, 2024
1 parent 28a174a commit 461e5c2
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/build-immortalwrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@ on:
# types: started
workflow_dispatch:
inputs:
repo:
description: '选择仓库:'
default: 'ImmortalWrt'
required: true
type: choice
options: [ immortalwrt, openwrt ]

branch:
description: '选择ImmortalWrt仓库的分支'
description: '选择的分支'
default: 'openwrt-21.02'
required: true
type: choice
Expand Down Expand Up @@ -74,13 +81,14 @@ jobs:
immo-openwrt:
runs-on: ubuntu-20.04
if: github.event.repository.owner.id == github.event.sender.id || ! github.event.sender.id
name: immortalwrt-${{github.event.inputs.branch}}-${{github.event.inputs.target}}
name: ${{github.event.inputs.repo}}-${{github.event.inputs.branch}}-${{github.event.inputs.target}}

permissions:
contents: write

env:
IP: ${{github.event.inputs.ip}}
REPO: ${{github.event.inputs.repo}}
DEPENDS: ${{github.event.inputs.depends}}
# VERSION: ${{github.event.inputs.version}}
PARTSIZE: ${{github.event.inputs.partsize}}
Expand Down Expand Up @@ -204,9 +212,9 @@ jobs:
with:
files: output/*
token: ${{secrets.GITHUB_TOKEN}}
body: immortalwrt-Cache
tag_name: immortalwrt-Cache
name: ${{env.EMOJI}} immortalwrt-Cache ${{env.EMOJI}}
body: ${{env.REPO}}-Cache
tag_name: ${{env.REPO}}-Cache
name: ${{env.EMOJI}} ${{env.REPO}}-Cache ${{env.EMOJI}}

- name: 下载软件包
run: |
Expand Down Expand Up @@ -288,9 +296,9 @@ jobs:
with:
files: firmware/*
token: ${{secrets.GITHUB_TOKEN}}
body: immortalwrt-firmware
tag_name: ${{env.STRDATE}}-immortalwrt
name: ${{env.EMOJI}} ${{env.STRDATE}} immortalwrt-firmware ${{env.EMOJI}}
body: ${{env.REPO}}-firmware
tag_name: ${{env.STRDATE}}-${{env.REPO}}
name: ${{env.EMOJI}} ${{env.STRDATE}} ${{env.REPO}}-firmware ${{env.EMOJI}}

- name: Save cache state
continue-on-error: true
Expand Down

0 comments on commit 461e5c2

Please sign in to comment.