this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: notify IRC channel on successful deploy

+20
+20
.github/workflows/deploy.yml
··· 43 43 chmod +x /srv/tumble/bin/tumble 44 44 sudo systemctl restart tumble 45 45 EOF 46 + 47 + - name: Notify IRC 48 + if: success() 49 + env: 50 + IRC_PASSWORD: ${{ secrets.IRC_PASSWORD }} 51 + run: | 52 + COMMIT_MSG=$(git log -1 --pretty=%s) 53 + { 54 + sleep 1 55 + printf "PASS %s\r\n" "$IRC_PASSWORD" 56 + printf "NICK tumble-deploy\r\n" 57 + printf "USER tumble-deploy 0 * :Tumble Deploy Bot\r\n" 58 + sleep 3 59 + printf "JOIN #heathsmom\r\n" 60 + sleep 2 61 + printf "PRIVMSG #heathsmom :Tumble deployed: %.7s - %s\r\n" "$GITHUB_SHA" "$COMMIT_MSG" 62 + sleep 1 63 + printf "QUIT :Done\r\n" 64 + sleep 1 65 + } | nc 72.14.177.235 8080 || true