-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
47 lines (42 loc) · 1.23 KB
/
action.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
38
39
40
41
42
43
44
45
46
47
name: Jdate
description: 'Download/install the latest version of jdate'
author: Davoud Arsalani <ielts@davoudarsalani.ir>
inputs:
source:
required: false
default: 'docker-jdate'
runs:
using: 'composite'
steps:
- name: Setting up python
if: ${{ inputs.source == 'jdatetime' }}
uses: actions/setup-python@v2
- name: Pulling/cloning/downloading
shell: bash
run: |
case '${{ inputs.source }}' in
docker-khayyam )
docker pull davoudarsalani/khayyam
;;
docker-persiantools )
docker pull davoudarsalani/persiantools
;;
docker-jdatetime )
docker pull davoudarsalani/jdatetime
;;
docker-jdate )
docker pull davoudarsalani/jdate
;;
* )
## set timezone
sudo ln -fs /usr/share/zoneinfo/Asia/Tehran /etc/localtime
sudo hwclock --systohc --utc
sudo timedatectl set-ntp true
wget -q 'https://raw.githubusercontent.com/davoudarsalani/scripts/master/install-jdate'
chmod +x ./install-jdate
./install-date '${{ inputs.source }}'
;;
esac
branding:
icon: calendar
color: blue