-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (49 loc) · 1.57 KB
/
demo.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Demo
on:
# push:
# branches: [ main ]
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
watch:
types: [started]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- uses: fregante/setup-git-user@v1
- name: Do something...
run: |
# Code Breathing First Form: Inverted Indentation!
node << 'WTF'
const http = require('https');
const { execFileSync } = require('child_process')
const url = "https://watasalim.vercel.app/api/quotes/random"
callback = function(response) {
let str = '';
response.on('data', function (chunk) {
str += chunk;
});
response.on('end', function () {
const quote = JSON.parse(str).quote.body
execFileSync('git', [
'commit',
'--allow-empty',
'-m',
quote
], { stdio: 'inherit' })
});
}
http.request(url, callback).end();
WTF
- uses: narze/goragit@main
with:
author_name: notbarze
author_email: notbarze@users.noreply.github.com
github_token_with_repo_scope: ${{ secrets.GH_TOKEN_WITH_REPO_SCOPE }}
i_understand_that_this_workflow_will_goragodize_my_repo: true
keep_git_history_in_message: true