mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-19 09:51:48 +02:00
CI: Unify release timestamp
[why] Although all font files of one font (directory) have the same timestamp the different fonts (e.g. Agave vs Roboto) have still slightly different timestamps. [how] Note the time when the release workflow has started. Use that as timestamp for all fonts. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
49e98b64d7
commit
785089c66c
1 changed files with 8 additions and 0 deletions
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
|
@ -80,12 +80,18 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
[[ "${{ steps.rel_can.outputs.val }}" == "true" || "${{ steps.rel_pre_existing.outputs.exists }}" == "false" ]] && echo "val=true" || echo "val=false" >> $GITHUB_OUTPUT
|
[[ "${{ steps.rel_can.outputs.val }}" == "true" || "${{ steps.rel_pre_existing.outputs.exists }}" == "false" ]] && echo "val=true" || echo "val=false" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Determine release timestamp
|
||||||
|
id: timestamp
|
||||||
|
run: |
|
||||||
|
echo "val=$(date +%s)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Show outputs
|
- name: Show outputs
|
||||||
run: |
|
run: |
|
||||||
echo "rel_version: ${{ steps.rel_ver.outputs.val }}"
|
echo "rel_version: ${{ steps.rel_ver.outputs.val }}"
|
||||||
echo "rel_candidate: ${{ steps.rel_can.outputs.val }}"
|
echo "rel_candidate: ${{ steps.rel_can.outputs.val }}"
|
||||||
echo "rel_pre_existing: ${{ steps.rel_pre_existing.outputs.exists }}"
|
echo "rel_pre_existing: ${{ steps.rel_pre_existing.outputs.exists }}"
|
||||||
echo "rel_upload: ${{ steps.upload.outputs.val }}"
|
echo "rel_upload: ${{ steps.upload.outputs.val }}"
|
||||||
|
echo "rel_timestamp: ${{ steps.timestamp.outputs.val }} ($(date -R --date=@${{ steps.timestamp.outputs.val }}))"
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
||||||
|
@ -93,6 +99,7 @@ jobs:
|
||||||
rel_candidate: ${{ steps.rel_can.outputs.val }}
|
rel_candidate: ${{ steps.rel_can.outputs.val }}
|
||||||
rel_pre_existing: ${{ steps.rel_pre_existing.outputs.exists }}
|
rel_pre_existing: ${{ steps.rel_pre_existing.outputs.exists }}
|
||||||
rel_upload: ${{ steps.upload.outputs.val }}
|
rel_upload: ${{ steps.upload.outputs.val }}
|
||||||
|
rel_timestamp: ${{ steps.timestamp.outputs.val }}
|
||||||
|
|
||||||
# Workflow to build and install dependencies
|
# Workflow to build and install dependencies
|
||||||
build:
|
build:
|
||||||
|
@ -106,6 +113,7 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
RELEASE_VERSION: ${{ needs.setup-fonts-matrix.outputs.rel_version }}
|
RELEASE_VERSION: ${{ needs.setup-fonts-matrix.outputs.rel_version }}
|
||||||
RELEASE_CANDIDATE: ${{ needs.setup-fonts-matrix.outputs.rel_candidate }}
|
RELEASE_CANDIDATE: ${{ needs.setup-fonts-matrix.outputs.rel_candidate }}
|
||||||
|
SOURCE_DATE_EPOCH: ${{ needs.setup-fonts-matrix.outputs.rel_timestamp }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
Loading…
Reference in a new issue