Skip to content

Commit df064f5

Browse files
committed
update workflow
1 parent 236b40b commit df064f5

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

.github/workflows/openwrt-release.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
1717
env:
1818
REPO_APK_KEY: ${{ secrets.REPO_APK_KEY }}
19+
PKG_NAME: ${{ github.event.repository.name }}
1920

2021
strategy:
2122
fail-fast: false
@@ -112,9 +113,6 @@ jobs:
112113
- name: 🧾 Checkout repo
113114
uses: actions/checkout@v5
114115

115-
- name: 📛 Set PKG_NAME from repo
116-
run: echo "PKG_NAME=${{ github.event.repository.name }}" >> "$GITHUB_ENV"
117-
118116
- name: 🧰 Set up melmac feed structure
119117
run: |
120118
# Create a proper OpenWrt feed layout where each package lives in its own subdir
@@ -154,11 +152,7 @@ jobs:
154152
for ext in ipk apk; do
155153
for f in $(find bin/packages -type f -path "*/melmac/*.${ext}"); do
156154
dir=$(dirname "$f")
157-
if [ -n "${{ matrix.suffix }}" ]; then
158-
mv -v "$f" "$dir/${PKG_NAME}-${PKG_VERSION}-${PKG_RELEASE}_${{ matrix.version }}_${{ matrix.suffix }}.${ext}"
159-
else
160155
mv -v "$f" "$dir/${PKG_NAME}-${PKG_VERSION}-${PKG_RELEASE}_${{ matrix.version }}_${{ matrix.target }}.${ext}"
161-
fi
162156
done
163157
done
164158

0 commit comments

Comments
 (0)