-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
32 lines (28 loc) · 882 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# action.yml
name: 'thiago-scherrer/climateclock-g-action'
description: 'Action to update markdown with climateclock.world'
inputs:
branch:
description: 'Branch to pull and push. Default main'
required: false
default: 'main'
js_delay:
description: 'Javascript delay in seconds. Default 3000'
required: false
default: '3000'
runs:
using: "composite"
steps:
- run: git pull origin ${{ inputs.branch }}
shell: bash
- run: |
docker run -v "$(pwd):/app" -e JS_DELAY=${{ inputs.js_delay }} \
ghcr.io/thiago-scherrer/climateclock-gh-action:main
shell: bash
- run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add clock.png
git commit -m "chore: clock update"
git push origin ${{ inputs.name }}
shell: bash