-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (33 loc) · 1.21 KB
/
time.yaml
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
33
34
35
36
37
name: ⌚ TIME
on:
workflow_dispatch:
schedule:
#- cron: "15 23 * * *" #( 11:15 PM UTC 05:00 AM Morning )
- cron: "0 */6 * * *" #Every 6 hrs
#------------------------------------------------------------------------------------#
jobs:
Initialize:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: main
- name: Get DateTime
run: |
# Date Time
BANGLA_TIME=$(TZ='Asia/Dhaka' date +'%Y-%m-%d (%I:%M:%S %p)')
echo "BANGLA_TIME=$BANGLA_TIME" >> $GITHUB_ENV
#
echo "$(TZ='Asia/Dhaka' date +'%Y-%m-%d (%I:%M:%S %p)') ⌚" > "$GITHUB_WORKSPACE/main/.github/TIME"
continue-on-error: true
- uses: stefanzweifel/git-auto-commit-action@v5
with:
repository: ./main
commit_user_name: RebootEx # defaults to "github-actions[bot]"
commit_user_email: [email protected] # defaults to "41898282+github-actions[bot]@users.noreply.github.com"
commit_message: "✅ Time <-- ${{ env.BANGLA_TIME }} ⌚"
#push_options: '--force'