get current date
This commit is contained in:
parent
7cd2746da6
commit
cd3ad537a8
1 changed files with 9 additions and 0 deletions
9
.github/workflows/docker-publish.yml
vendored
9
.github/workflows/docker-publish.yml
vendored
|
|
@ -34,6 +34,15 @@ jobs:
|
|||
id-token: write
|
||||
|
||||
steps:
|
||||
- name: Get current date
|
||||
id: date
|
||||
run: echo "::set-output name=date::$(date +'%Y%m%d')"
|
||||
|
||||
- name: Test with environment variables
|
||||
run: echo $DATE
|
||||
env:
|
||||
DATE: ${{ steps.date.outputs.date }}
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue