-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run actions on pull requests, extract commit message
- Loading branch information
Showing
3 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Cake Wallet Android | ||
|
||
on: [push] | ||
on: [pull_request] | ||
|
||
defaults: | ||
run: | ||
|
@@ -33,6 +33,12 @@ jobs: | |
steps: | ||
- name: Fix github actions messing up $HOME... | ||
run: 'echo HOME=/root | sudo tee -a $GITHUB_ENV' | ||
- name: Get the full commit message | ||
run: | | ||
FULL_MESSAGE="$(git log -1 --pretty=%B)" | ||
echo "message<<EOF" >> $GITHUB_ENV | ||
echo "$FULL_MESSAGE" >> $GITHUB_ENV | ||
echo "EOF" >> $GITHUB_ENV | ||
- uses: actions/checkout@v4 | ||
- name: configure git | ||
run: | | ||
|
@@ -279,14 +285,14 @@ jobs: | |
echo "APK_FILE=$apk_file" >> $GITHUB_ENV | ||
- name: Upload artifact to slack | ||
if: ${{ !contains(github.event.head_commit.message, 'skip slack') }} | ||
if: ${{ !contains(env.message, 'skip slack') }} | ||
continue-on-error: true | ||
uses: adrey/[email protected] | ||
with: | ||
token: ${{ secrets.SLACK_APP_TOKEN }} | ||
path: ${{ env.APK_FILE }} | ||
channel: ${{ secrets.SLACK_APK_CHANNEL }} | ||
initial_comment: ${{ github.event.head_commit.message }} | ||
initial_comment: ${{ env.message }} | ||
|
||
- name: cleanup | ||
run: rm -rf build/app/outputs/flutter-apk/test-apk/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters