Merge pull request #1334 from vector-im/fheese/workflow_create_latest_ci_unixtime

Addressing Deprecating save-state and set-output commands
This commit is contained in:
Robin
2023-08-09 10:59:04 -04:00
committed by GitHub

View File

@@ -18,9 +18,9 @@ jobs:
contents: write # required to upload release asset contents: write # required to upload release asset
packages: write packages: write
steps: steps:
- name: Get current date - name: Get current time
id: current_date id: current-time
run: echo "::set-output name=unix_time::$(date +'%s')" run: echo "unix_time=$(date +'%s')" >> $GITHUB_OUTPUT
- name: Check it out - name: Check it out
uses: actions/checkout@v2 uses: actions/checkout@v2
@@ -69,7 +69,7 @@ jobs:
type=sha,format=short,event=branch type=sha,format=short,event=branch
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=raw,value=latest-ci,enable={{is_default_branch}} type=raw,value=latest-ci,enable={{is_default_branch}}
type=raw,value=latest-ci_{{ steps.current_date.outputs.unix_time }},enable={{is_default_branch}} type=raw,value=latest-ci_{{steps.current-time.outputs.unix_time}},enable={{is_default_branch}}
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6