-
Notifications
You must be signed in to change notification settings - Fork 41
47 lines (41 loc) · 1.14 KB
/
EVENT_merge_to_master.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
name: merge_to_master
run-name: Merge to master
on:
push:
branches:
- master
- DAR-2492
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ githFub.ref }}
cancel-in-progress: true
jobs:
run_tests:
name: Run tests
uses: ./.github/workflows/JOB_tests.yml
documentation:
name: Documentation
uses: ./.github/workflows/JOB_generate_documentation.yml
secrets: inherit
success:
needs: [run_tests, documentation]
if : ${{ success() }}
name: Success
runs-on: ubuntu-latest
steps:
- name: Set branch status to success
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { context } = require('@actions/github');
const { owner, repo } = context.repo;
const sha = context.sha;
await github.rest.repos.createCommitStatus({
owner: owner,
repo: repo,
sha: sha,
state: 'success',
context: 'continuous-integration/github-action',
description: 'The build succeeded!'
});