ci: fix warning

This commit is contained in:
sbwml 2022-10-22 16:27:48 +08:00
parent 143f068708
commit 38b64a0a13
2 changed files with 15 additions and 19 deletions

View File

@ -16,7 +16,7 @@ jobs:
- x86_64 - x86_64
steps: steps:
- uses: actions/checkout@main - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
@ -25,7 +25,7 @@ jobs:
git clone https://github.com/sbwml/v2ray-geodata git clone https://github.com/sbwml/v2ray-geodata
- name: Building packages - name: Building packages
uses: immortalwrt/gh-action-sdk@v4 uses: immortalwrt/gh-action-sdk@master
env: env:
ARCH: ${{ matrix.arch }}-openwrt-18.06-k5.4 ARCH: ${{ matrix.arch }}-openwrt-18.06-k5.4
FEEDNAME: packages_ci FEEDNAME: packages_ci
@ -35,7 +35,7 @@ jobs:
- name: Move created packages to project dir - name: Move created packages to project dir
run: | run: |
cp bin/packages/${{ matrix.arch }}/packages_ci/*i18n*zh-cn*.ipk . || true cp bin/packages/${{ matrix.arch }}/packages_ci/*i18n*zh-cn*.ipk . || true
for i in `ls`; do mv -f $i `echo "openwrt-18.06_"$i`; done for i in `ls *.ipk`; do mv -f $i `echo "openwrt-18.06_"$i`; done
- name: Store packages - name: Store packages
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
@ -45,11 +45,9 @@ jobs:
path: "*.ipk" path: "*.ipk"
- name: Upload packages - name: Upload packages
uses: svenstaro/upload-release-action@master uses: ncipollo/release-action@v1
if: github.event_name == 'release'
with: with:
repo_token: ${{ secrets.workflow_token }} token: ${{ secrets.workflow_token }}
file: "*.ipk" allowUpdates: true
tag: ${{ github.ref }} replacesArtifacts: true
overwrite: true artifacts: "*.ipk"
file_glob: true

View File

@ -42,7 +42,7 @@ jobs:
- x86_64 - x86_64
steps: steps:
- uses: actions/checkout@main - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
@ -51,7 +51,7 @@ jobs:
git clone https://github.com/sbwml/v2ray-geodata git clone https://github.com/sbwml/v2ray-geodata
- name: Building packages - name: Building packages
uses: openwrt/gh-action-sdk@v5 uses: openwrt/gh-action-sdk@master
env: env:
ARCH: ${{ matrix.arch }}-master ARCH: ${{ matrix.arch }}-master
FEEDNAME: packages_ci FEEDNAME: packages_ci
@ -65,11 +65,9 @@ jobs:
path: bin/packages/${{ matrix.arch }}/packages_ci/*.ipk path: bin/packages/${{ matrix.arch }}/packages_ci/*.ipk
- name: Upload packages - name: Upload packages
uses: svenstaro/upload-release-action@master uses: ncipollo/release-action@v1
if: github.event_name == 'release'
with: with:
repo_token: ${{ secrets.workflow_token }} token: ${{ secrets.workflow_token }}
file: "bin/packages/${{ matrix.arch }}/packages_ci/*.ipk" allowUpdates: true
tag: ${{ github.ref }} replacesArtifacts: true
overwrite: true artifacts: "bin/packages/${{ matrix.arch }}/packages_ci/*.ipk"
file_glob: true