Skip to content

Commit

Permalink
Update deploy.yml update irc commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
pitill0 authored Feb 7, 2025
1 parent 608b76f commit c0299b2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ jobs:
# 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'`
GITREPO=`git remote show origin -n | grep h.URL | sed 's/Fetch URL: https:\/\/github.com\/crux-arm\/crux-ports-//g'`
GITMSG=`git log -1 --pretty=format:"%s"`
echo "MESSAGE=$(echo "[$GITREPO ] $GITMSG")" >> $GITHUB_ENV
GITBRANCH=`git branch | grep '*' | sed 's/* //'`
echo "MESSAGE=$(echo "[$GITREPO/$GITBRANCH ]: $GITMSG")" >> $GITHUB_ENV
# Send IRC message by bot
- name: irc push
Expand All @@ -43,4 +44,4 @@ jobs:
run: |
git config user.name "$(git log -n 1 --pretty=format:%an)"
git config user.email "$(git log -n 1 --pretty=format:%ae)"
bash -c "git commit -a -m '[auto] Update REPO file' && git push || exit 0"
bash -c "git commit -a -m '[auto] Update REPO file' && git

0 comments on commit c0299b2

Please sign in to comment.