-
-
Notifications
You must be signed in to change notification settings - Fork 556
156 lines (156 loc) · 10.4 KB
/
main.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
name: CI
on:
- push
- pull_request
- workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: docker build
run: |
sudo docker build -t quine-relay .
- name: docker run
run: |
sudo docker run --privileged --name qr -e CI=true -t quine-relay
- name: push spoiler
run: |
git clone https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git spoiler --branch spoiler
git -C spoiler rm --quiet -r '*'
sudo docker cp qr:/usr/local/share/quine-relay/QR.rb spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.rs spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.scala spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.scm spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.sci spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.sed spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.spl spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.sl spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.nut spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.sml spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.sq spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.ss spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.tcl spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.tcsh spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.t spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.ts spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.unl spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.vala spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.mid spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.v spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.vim spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.vb spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.wasm spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.wat spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.ws spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.xslt spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.yab spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.yorick spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.azm spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.zsh spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.+ spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/qr.adb spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.als spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.aheui spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.a68 spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.ante spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.aj spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.asy spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.dats spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.awk spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.bash spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.bc spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.bsh spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.bef spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.Blc spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.bf spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.c spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.cpp spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.cs spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.chef spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.clj spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.cmake spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.cob spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.coffee spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.lisp spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.cr spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.d spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.dc spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.dhall spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.exs spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.el spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.erl spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.e spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.fsx spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.false spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.fl spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.fish spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.fs spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.f spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.f90 spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.gbs spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.g spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.gdb spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.gel spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.plt spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.go spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.gs spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.gpt spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.grass spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.groovy spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.gz spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.hs spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.hx spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.icn spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.i spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.j spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.java spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.js spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.jq spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.jsfuck spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.kt spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.ksh spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.lazy spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/qr.li spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.ls spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.ll spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.lol spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.lua spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.m4 spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.mk spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.mzn spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.mod spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.il spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.mustache spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.asm spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.neko spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.5c spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.nim spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.m spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.ml spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.octave spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.ook spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.gp spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.p spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.pas spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.pl spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.pl6 spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.php spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.png spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.pike spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.ps spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.prolog spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.pr spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.py spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.R spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.ratfor spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.rc spoiler/
sudo docker cp qr:/usr/local/share/quine-relay/QR.rexx spoiler/
cd spoiler
git add .
GIT_AUTHOR_NAME="$(git show -s --format=%an "$GITHUB_SHA")" GIT_AUTHOR_EMAIL="$(git show -s --format=%ae "$GITHUB_SHA")" GIT_AUTHOR_DATE="$(git show -s --format=%ad "$GITHUB_SHA")" GIT_COMMITTER_NAME='GitHub Actions' GIT_COMMITTER_EMAIL='actions@github.com' TZ=UTC git commit --allow-empty -m "spoiler: $(git show -s --format=%s "$GITHUB_SHA")"
git push --quiet origin spoiler
echo The intermediate sources are available: https://github.com/${GITHUB_REPOSITORY}/tree/spoiler
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}