Fix outputting in build script
Code Quality Test / Quality-Check (push) Successful in 2s Details
Build Docker Image for Actions / Check-Last-Time (push) Successful in 34s Details
Build Docker Image for Actions / Build-Image (push) Has been cancelled Details
Environment Setup Test / Setup (push) Successful in 1m8s Details

pull/4/head
drunkendog 2023-08-28 18:22:32 +01:00
parent 4bc862a047
commit 7d6b234e8f
1 changed files with 4 additions and 1 deletions

View File

@ -1,10 +1,12 @@
name: Build Docker Image for Actions name: Build Docker Image for Actions
on: [push, pull_request] on: [push]
jobs: jobs:
Check-Last-Time: Check-Last-Time:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
env: env:
DEBIAN_FRONTEND: noninteractive DEBIAN_FRONTEND: noninteractive
outputs:
last-time: ${{ steps.last-time.outputs.last-time }}
steps: steps:
- name: Install jq - name: Install jq
run: | run: |
@ -16,6 +18,7 @@ jobs:
| jq '.last_updated' | jq '.last_updated'
| xargs -i date --date {} +%s | xargs -i date --date {} +%s
| xargs -i expr $(date +%s) - {} | xargs -i expr $(date +%s) - {}
| xargs -i echo last-time={} >> $GITHUB_OUTPUT
Build-Image: Build-Image:
needs: [Check-Last-Time] needs: [Check-Last-Time]
if: needs.Check-Last-Time.outputs.last-time > 1 if: needs.Check-Last-Time.outputs.last-time > 1