File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed
Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,17 @@ jobs:
5454 username : ${{ github.actor }}
5555 password : ${{ secrets.GITHUB_TOKEN }}
5656
57+ - name : Add metadata
58+ if : ${{ steps.lint.outcome == 'success' }}
59+ run : |
60+ sed -i 's|<BUILD_ACTOR>|${{ github.actor }}|g' src/tg/init.deno.ts
61+
5762 - name : Build and push Docker image
58- if : ${{ (github.ref == 'refs/heads/amogus' || github.ref == 'refs/heads/sus') && steps.lint.outcome == 'success' }}
63+ if : ${{ steps.lint.outcome == 'success' }}
5964 uses : docker/build-push-action@v3
6065 with :
6166 push : true
62- tags : ghcr.io/0d9e-tech/web:${{ github.ref == 'refs/heads/amogus' && 'staging' || 'latest ' }}
67+ tags : ghcr.io/0d9e-tech/web:${{ github.ref == 'refs/heads/sus' && 'latest' || github.ref == 'refs/heads/ amogus' && 'staging' || 'dev ' }}
6368 cache-from : type=gha
6469 cache-to : type=gha,mode=max
6570
Original file line number Diff line number Diff line change @@ -124,6 +124,19 @@ export function checkStickerReaction(stickerMessageId: number) {
124124
125125const hashOrigins = [ { lat : 50.1005803 , lon : 14.3954325 } ] ;
126126
127+ const users = {
128+ mvolfik : "Matěj" ,
129+ chamik : "Kubík" ,
130+ CloudMracek : "Honza" ,
131+ marekmaskarinec : "Marek" ,
132+ mariansam : "Marain" ,
133+ Matuush : "Matúš" ,
134+ ProkopRandacek : "Prokop" ,
135+ WIPocket : "Adam" ,
136+ topberry : "Honzak" ,
137+ Ouolim : "Janek" ,
138+ } ;
139+
127140async function postGeohash ( ) {
128141 const upcoming = new Date ( ) ;
129142 upcoming . setHours ( 6 ) ;
@@ -242,6 +255,12 @@ export async function init() {
242255 ) ;
243256
244257 setTimeout ( async ( ) => {
258+ const username = '<BUILD_ACTOR>' ;
259+ const name = users [ username ] ?? "Nějakej impostor" ;
260+ await tgCall ( {
261+ chat_id : MAIN_CHAT_ID ,
262+ text : `${ name } zase kazí všechnu zábavu` ,
263+ } ) ;
245264 await tgCall (
246265 {
247266 photo : `https://${ DOMAIN } /startup.jpg?q=${ bootId } ` ,
You can’t perform that action at this time.
0 commit comments