Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TanujairamV authored Nov 6, 2024
1 parent c471612 commit d004d66
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Build Modules

on:
workflow_call:
secrets:
Expand Down Expand Up @@ -45,7 +46,7 @@ jobs:
- name: Get next version code
id: next_ver_code
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PAT: ${{ secrets.PAT }}
run: |
TAG=$(gh release list -L 1 | awk -F '\t' '{print $3}')
if [ -z "$TAG" ]; then TAG=0; fi
Expand All @@ -55,7 +56,7 @@ jobs:
continue-on-error: true
run: ./build.sh config.toml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PAT: ${{ secrets.PAT }}
GITHUB_REPOSITORY: $GITHUB_REPOSITORY
NEXT_VER_CODE: ${{ steps.next_ver_code.outputs.NEXT_VER_CODE }}

Expand All @@ -77,7 +78,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
body: ${{ steps.get_output.outputs.BUILD_LOG }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.PAT }}
file: ./build/*
release_name: v${{ steps.date.outputs.DATE }}
tag: ${{ steps.next_ver_code.outputs.NEXT_VER_CODE }}
Expand Down

0 comments on commit d004d66

Please sign in to comment.