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
steps:
- uses: actions/checkout@main
- uses: actions/checkout@v3
with:
fetch-depth: 0
@ -25,7 +25,7 @@ jobs:
git clone https://github.com/sbwml/v2ray-geodata
- name: Building packages
uses: immortalwrt/gh-action-sdk@v4
uses: immortalwrt/gh-action-sdk@master
env:
ARCH: ${{ matrix.arch }}-openwrt-18.06-k5.4
FEEDNAME: packages_ci
@ -35,7 +35,7 @@ jobs:
- name: Move created packages to project dir
run: |
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
uses: actions/upload-artifact@v3
@ -45,11 +45,9 @@ jobs:
path: "*.ipk"
- name: Upload packages
uses: svenstaro/upload-release-action@master
if: github.event_name == 'release'
uses: ncipollo/release-action@v1
with:
repo_token: ${{ secrets.workflow_token }}
file: "*.ipk"
tag: ${{ github.ref }}
overwrite: true
file_glob: true
token: ${{ secrets.workflow_token }}
allowUpdates: true
replacesArtifacts: true
artifacts: "*.ipk"

View File

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