Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Feb 28, 2025
1 parent 7207714 commit bbcde60
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/on-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,27 @@ jobs:
echo STATUS="Failed" >> $GITHUB_ENV
fi
fi
echo $RESULT
echo $STATUS
- name: Send slack notification
run: |
[ "x$STATUS" == "xSynced" ] && \
FORK_STATUS="✅ Changes synced with Farajaland repo https://github.com/${FORK_REPOSITORY_PATH}"
[ "x$STATUS" == "xCreated" ] && \
FORK_STATUS="⚠️ Changes was not synced with Farajaland repo due to merge conflicts, please merge PR $RESULT manually to keep Farajaland in sync Countryconfig"
[ "x$STATUS" == "xFailed" ] && \
FORK_STATUS="❌ Failed to create PR in Farajaland repository: $RESULT"
BODY="""
Pull request https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request.number }}
authored by ${{ github.actor }} from branch ${{ github.head_ref }} was merged into ${BASE_BRANCH}.
$FORK_STATUS
"""
echo "$BODY"
# curl -X POST https://slack.com/api/chat.postMessage \
# -H "Authorization: Bearer ${{ secrets.SLACK_BOT_TOKEN }}" \
# -H 'Content-type: application/json' \
# --data "{
# 'channel': 'C02LU432JGK',
# 'text': '$BODY'
# }"

0 comments on commit bbcde60

Please sign in to comment.