Skip to content

Commit

Permalink
ci(gh-actions): notify compatibility if failed
Browse files Browse the repository at this point in the history
  • Loading branch information
moreal committed Aug 18, 2021
1 parent af28f15 commit 60790f1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/bin/bump_libplanet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,5 @@ LIBPLANET_UNITY_DIRECTORY="$(pwd)/planet-clicker/Assets/LibplanetUnity/Packages"

echo "$libplanet_publish_directory"
copy_libplanet_files "$libplanet_publish_directory" "$LIBPLANET_UNITY_DIRECTORY"

echo "::set-output name=libplanet_latest_tag::$latest_tag"
10 changes: 9 additions & 1 deletion .github/workflows/check-libplanet-compatibility.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ jobs:
with:
dotnet-version: '3.1.x'
- run: .github/bin/bump_libplanet.sh
id: bump_libplanet
- name: build
run: .github/bin/build.sh
env:
ULF: "${{ secrets.ULF }}"
ULF: "${{ secrets.ULF }}"
- name: send slack message
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: abinoda/slack-action@v1.0.9
with:
args: '{\"channel\":\"engineering\",\"text\":\"planet-clicker is not compatible with the latest libplanet, ${{ steps.bump_libplanet.outputs.libplanet_latest_tag }}.\"}'
if: ${{ failure() }}

0 comments on commit 60790f1

Please sign in to comment.