Skip to content

Commit

Permalink
Fix date tag bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Nov 10, 2023
1 parent c9f075c commit a7345f6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- 'ubuntu20-cache'

jobs:
env-prod:
envs:
runs-on: ubuntu-20.04
steps:
################################################################
Expand All @@ -31,12 +31,12 @@ jobs:
docker-prod:
runs-on: ubuntu-20.04
needs:
- env-prod
- envs
steps:
################################################################
- name: Covert output to env
run: |
SRS_TAG=${{ needs.env-prod.outputs.SRS_TAG }}
SRS_TAG=${{ needs.envs.outputs.SRS_TAG }}
echo "SRS_TAG=$SRS_TAG" >> $GITHUB_ENV
################################################################
# Git checkout
Expand All @@ -61,7 +61,7 @@ jobs:
################################################################
- name: Covert output to env
run: |
SRS_TAG=${{ needs.env-prod.outputs.SRS_TAG }}
SRS_TAG=${{ needs.envs.outputs.SRS_TAG }}
echo "SRS_TAG=$SRS_TAG" >> $GITHUB_ENV
echo "SRS_TAG_DATE=${{ needs.envs.outputs.SRS_TAG }}-$(date +%y-%m-%d)" >> $GITHUB_ENV
# Docker
Expand All @@ -88,13 +88,13 @@ jobs:
name: for aliyun
runs-on: ubuntu-20.04
needs:
- env-prod
- envs
- docker-prod
steps:
################################################################
- name: Covert output to env
run: |
SRS_TAG=${{ needs.env-prod.outputs.SRS_TAG }}
SRS_TAG=${{ needs.envs.outputs.SRS_TAG }}
echo "SRS_TAG=$SRS_TAG" >> $GITHUB_ENV
echo "SRS_TAG_DATE=${{ needs.envs.outputs.SRS_TAG }}-$(date +%y-%m-%d)" >> $GITHUB_ENV
################################################################
Expand Down

0 comments on commit a7345f6

Please sign in to comment.