Skip to content

Commit

Permalink
ci: fix build
Browse files Browse the repository at this point in the history
* change outputs

* fix outputs

* fix build if

* fix outputs

* fix github output

* fix tags and quotes

* fix more

* fetch all repo

c* fix if build

* fix needs in env

* fix sed
  • Loading branch information
pwall2222 committed Jan 11, 2024
1 parent bf9a571 commit 8bb5985
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,25 @@ on:
jobs:
version:
outputs:
types: steps.version.types
tag: steps.version.tag.tag
types: ${{ steps.version.outputs.types }}
tag: ${{ steps.tag.outputs.tag }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get version
id: version
run: |
echo "TYPES=$(npm view valorant-api-types --json | jq .version)"
echo "TYPES=$(npm view valorant-api-types --json | jq -r .version)" >> $GITHUB_OUTPUT
- name: Get Previous tag
id: tag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: "0.7.0"
build:
needs: version
if: needs.version.types != needs.version.tag
if: needs.version.outputs.types != needs.version.outputs.tag
uses: ./.github/workflows/deno.yml
publish:
needs: [version, build]
Expand All @@ -44,9 +48,9 @@ jobs:
path: template/ValWrap/
- name: Setup python project version
run: |
sed "s/^\(version = \).*$/\1\"$next\"/" pyproject.toml
sed -i "s/^\(version = \).*$/\1\"$next\"/" pyproject.toml
env:
next: ${{ needs.version.types }}
next: ${{ needs.version.outputs.types }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit 8bb5985

Please sign in to comment.