Skip to content

Commit

Permalink
.github/workflows: fix path
Browse files Browse the repository at this point in the history
Signed-off-by: Yongxiang Liang <[email protected]>
  • Loading branch information
liangyongxiang committed Jan 15, 2024
1 parent a0a4175 commit 481d371
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/nvchecker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ concurrency:
jobs:
nvchecker:
runs-on: ubuntu-latest
if: github.repository == 'microcai/gentoo-zh' && github.ref == 'refs/heads/master'
container:
image: ghcr.io/liangyongxiang/gentoo-testing:master

Expand Down Expand Up @@ -46,25 +45,19 @@ jobs:
- name: nvchecker
id: nvchecker
run: |
echo "::group::nvchecker"
echo "::group::nvchecker and nvcmp"
cd .github/workflows/
echo -e "[keys]\ngithub = \"${{ secrets.GITHUB_TOKEN }}\"" > keyfile.toml
nvchecker --file overlay.toml --keyfile keyfile.toml
echo "::endgroup::"
- name: new version normalization
id: new_ver
run: |
sed -r -i \
-e 's#(\.|-|_)?a([[:digit:]]+)",$#_alpah\2",#' \
-e 's#(\.|-|_)?p([[:digit:]]+)",$#_p\2",#' \
-e 's#(\.|-|_)?rc([[:digit:]]+)",$#_rc\2",#' \
.github/workflows/new_ver.json
-e 's#(\.|-|_)?a([[:digit:]]+)(",?)$#_alpah\2\3#' \
-e 's#(\.|-|_)?p([[:digit:]]+)(",?)$#_p\2\3#' \
-e 's#(\.|-|_)?rc([[:digit:]]+)(",?)$#_rc\2\3#' \
new_ver.json
cat new_ver.json
- name: nvcmp
id: nvcmp
run: |
echo "::group::nvcmp"
echo "::set-output name=nvcmp::$(nvcmp --file overlay.toml --json --newer)"
echo "::endgroup::"
Expand All @@ -81,7 +74,7 @@ jobs:
uses: actions/github-script@v6
timeout-minutes: 1
env:
pkgs: ${{steps.nvcmp.outputs.nvcmp}}
pkgs: ${{steps.nvchecker.outputs.nvcmp}}
with:
github-token: ${{ secrets.GENTOO_ZH_NVCHECKER_PAT }}
script: |
Expand Down

0 comments on commit 481d371

Please sign in to comment.