-
Notifications
You must be signed in to change notification settings - Fork 11
51 lines (50 loc) · 1.66 KB
/
version_checker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: version_checker
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
check-apps-for-update:
if: github.event.pull_request.draft == false
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: 1.9
otp-version: 22.2.8
version-type: strict
- name: Get dependencies
run: |
bash scripts/gh-action-get-deps.sh
- name: Git Stuff
id: git
run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Check App versions
run: |
export MESSAGE=$(bash scripts/gh-action-check-version.sh)
if [ -z "${MESSAGE}" ]; then
echo "No app changes detected"
exit 0
else
echo -e "${MESSAGE}"
exit 1
fi
# echo -e "${MESSAGE:-No app changes detected}" > comment-updates.txt
id: differ
- if: always() && github.ref == 'refs/heads/master'
name: Report Status
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: "failure"
message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
# - name: Comment PR
# uses: marocchino/sticky-pull-request-comment@v1
# with:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# path: comment-updates.txt