Fix outputting in build script
parent
4bc862a047
commit
7d6b234e8f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue