-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (53 loc) · 1.53 KB
/
dev.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
52
53
54
55
56
57
58
59
name: Dev
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
on:
push:
branches:
- '*'
- '!release-please-*'
workflow_dispatch:
jobs:
prepare:
name: "Prepare"
runs-on: ubuntu-latest
outputs:
branch: ${{ steps.prepare-step.outputs.branch }}
version: ${{ steps.prepare-step.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting for sonar
fetch-depth: 0
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
lein: 2.11.2
- name: Extract branch name and substitute slashes
shell: bash
working-directory: code
run: |
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" | tr '/' '-' >> $GITHUB_OUTPUT
version=$(lein project-version)
echo "project version=${version}"
echo "version=${version}" >> $GITHUB_OUTPUT
id: prepare-step
build:
name: "Build and push"
uses: ./.github/workflows/build.yml
needs: [prepare]
with:
DOCKER_REPO: nuvladev
DOCKER_TAG: ${{ needs.prepare.outputs.branch }}
secrets: inherit
notify:
if: always()
name: "Notify Slack"
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: Gamesight/slack-workflow-status@master
with:
repo_token: ${{secrets.GITHUB_TOKEN}}
slack_webhook_url: ${{secrets.SLACK_WEBHOOK_URL}}