mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-23 17:23:59 +08:00
Replace deprecated command with environment file in example documentation
This commit is contained in:
parent
6babf202a4
commit
c16522c3c7
3 changed files with 12 additions and 13 deletions
|
@ -135,8 +135,8 @@ Additionally, you can use arbitrary command output in a cache key, such as a dat
|
|||
# http://man7.org/linux/man-pages/man1/date.1.html
|
||||
- name: Get Date
|
||||
id: get-date
|
||||
run: |
|
||||
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
|
||||
run: echo "date=$(/bin/date -u "+%Y%m%d")" >> $GITHUB_OUTPUT
|
||||
|
||||
shell: bash
|
||||
|
||||
- uses: actions/cache@v3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue