Skip to content

Commit

Permalink
Update push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jayllfilebyte authored Dec 30, 2023
1 parent 6df4e9d commit bcd473e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
id: dt
uses: Kaven-Universe/github-action-current-date-time@v1
with:
format: "YYYY年MM月DD日 HH:mm:ss.SSS"
format: "YYMMDDHHmm"
timezone-offset: -480

- name: Set COM_ID
Expand All @@ -75,15 +75,9 @@ jobs:
- name: Set VERSION_NAME
run: echo VERSION_NAME=$(echo v${{ steps.dt.outputs.year }}.${{ steps.dt.outputs.month }}.${{ steps.dt.outputs.day }}.${{ env.COM_ID }}) >> $GITHUB_ENV

- name: Set simplified year
run: |
SIM_YEAR=${{ steps.dt.outputs.year }}
SIM_YEAR=$(echo $SIM_YEAR | tail -c 3)
echo YEAR=$SIM_YEAR >> $GITHUB_ENV

- name: Set VERSION_CODE
run: echo VERSION_CODE=$(echo ${{ env.YEAR }}${{ steps.dt.outputs.month }}${{ steps.dt.outputs.day }}${{ steps.dt.outputs.hours }}${{ steps.dt.outputs.minutes }}) >> $GITHUB_ENV
run: echo VERSION_CODE=$(echo ${{ steps.dt.outputs.time }}) >> $GITHUB_ENV

- name: Override version name and code in build.gradle
uses: Devofure/advance-android-version-actions@v1.4
Expand Down

0 comments on commit bcd473e

Please sign in to comment.