Clock Out #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clock Out | |
on: | |
# set cron around 17.03 (UTC+7) // sometimes cron will execute at 17.50, so be carefull to set the schedule | |
# * * * * * perintah yang akan dieksekusi | |
# β β β β β | |
# | | | | | | |
# | | | | +ββ day of week (0 β 7) (Sunday=0) | |
# | | | +ββ- month (1 β 12) | |
# | | +βββ day of month (1 β 31) | |
# | +ββββ hour (0 β 23) | |
# +ββββ- min (0 β 59) | |
schedule: | |
- cron: "10 10 * * *" | |
workflow_dispatch: {} | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: nanasess/setup-chromedriver@v1 | |
with: | |
chromedriver-version: "106.0.5249.61" | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19.1 | |
- run: go run . clock-out | |
env: | |
TZ: Asia/Jakarta | |
TALENTA_EMAIL: ${{ secrets.TALENTA_EMAIL }} | |
TALENTA_PASSWORD: ${{ secrets.TALENTA_PASSWORD }} | |
LATITUDE: ${{ secrets.LATITUDE }} | |
LONGITUDE: ${{ secrets.LONGITUDE }} |