Merge to master #199
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
name: merge_to_master | ||
run-name: Merge to master | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- DAR-2492 | ||
workflow_call: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ githFub.ref }} | ||
Check failure on line 12 in .github/workflows/EVENT_merge_to_master.yml GitHub Actions / merge_to_masterInvalid workflow file
|
||
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!' | ||
}); |