Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pitill0 committed Jan 6, 2024
1 parent 2f3678f commit cab43ca
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ name: deploy

on:
push:
# Run for all branches except the main branch
branches-ignore:
- main
branches:
- '*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -16,6 +15,23 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE
- uses: actions/checkout@v3

# Prepare git log message to avoid extra blank lines
- name: Set env message
run: |
GITREPO=`git remote show origin -n | grep h.URL | sed 's/Fetch URL: https:\/\/github.com\/crux-arm\///g'`
GITMSG=`git log -1 --pretty=format:"%s"`
echo "MESSAGE=$(echo "[$GITREPO ] $GITMSG")" >> $GITHUB_ENV
# Send IRC message by bot
- name: irc push
uses: rectalogic/notify-irc@v1
if: github.event_name == 'push' && !contains(github.event.head_commit.message, 'REPO')
with:
channel: "#crux-arm"
server: "irc.libera.chat"
nickname: crux-arm-bot
message: ${{ env.MESSAGE }}

- name: Update REPO file
run: |
wget -P /tmp -q https://crux.nu/files/httpup-0.5.0.tar.xz
Expand Down

0 comments on commit cab43ca

Please sign in to comment.