-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
33 lines (29 loc) · 1.06 KB
/
.drone.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
33
kind: pipeline
name: Format Python code, etc.
trigger:
branch:
- master
steps:
- name: Checkout the master branch
image: python:bullseye
commands:
- git checkout master
- name: Print the git status
image: python:bullseye
commands:
- git status
- echo "Current commit is $(git log --pretty=format:'%h' -n 1)"
- name: Install additional software
image: python:bullseye
commands:
- apt update
- echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_11/ /' | tee /etc/apt/sources.list.d/shells:fish:release:3.list
- curl -fsSL https://download.opensuse.org/repositories/shells:fish:release:3/Debian_11/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/shells_fish_release_3.gpg > /dev/null
- apt update
- apt install -y fish
- fish --version
- chmod +x generate-trilium-client.fish
- fish generate-trilium-client.fish
- git add .
- git diff --quiet && git diff --staged --quiet || git commit -am '[DRONE] [CI SKIP] Updated client'
- git push --set-upstream origin master