File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 required : true
3737
3838jobs :
39+ plan :
40+ runs-on : ubuntu-latest
41+ permissions :
42+ contents : write
43+ pull-requests : write
44+ - name : Notify of the release in the PR
45+ uses : actions/github-script@v7
46+ with :
47+ script : |
48+ const releaseUrl = `https://github.com/${{ github.repository }}/releases/tag/${{ inputs.name }}-${{ env.RELEASE_TIMESTAMP }}`;
49+ const body = `
50+ ## :robot: A new training is being planned.
51+
52+ * Name: ${{ inputs.name }}
53+ * Repository sub-dir: ${{ inputs.snakemake_dir }}
54+ * Snakemake targets: ${{ inputs.targets }}
55+ * Selected runner: ${{ inputs.main_runner }}
56+
57+ At the end of the training, the models will be released and this PR will be notified again.
58+ `;
59+ await github.rest.issues.createComment({
60+ issue_number: context.issue.number,
61+ owner: context.repo.owner,
62+ repo: context.repo.repo,
63+ body: body
64+ });
65+
3966 train-and-validate :
4067 runs-on : ${{ inputs.main_runner }}
4168 steps :
@@ -249,7 +276,7 @@ jobs:
249276 script : |
250277 const releaseUrl = `https://github.com/${{ github.repository }}/releases/tag/${{ inputs.name }}-${{ env.RELEASE_TIMESTAMP }}`;
251278 const body = `
252- ## :rocket: New models were released for ${{ inputs.name }}
279+ ## :rocket: Models for ${{ inputs.name }} were released
253280 You can review the models developed in this PR in [Release ${{ inputs.name }}-${{ env.RELEASE_TIMESTAMP }}](${releaseUrl})
254281 `;
255282 await github.rest.issues.createComment({
Original file line number Diff line number Diff line change 3232 branches :
3333 - main
3434
35+ concurrency :
36+ group : pull_request-${{ github.head_ref }}
37+ cancel-in-progress : true
38+
3539jobs :
3640 trk-2016MagUp-Sim10b :
3741 uses : LamarrSim/release-models/.github/workflows/release.yaml
3842 permissions :
3943 contents : write
4044 pull-requests : write
4145 with :
42- name : pp-2016-MU-Sim10b
46+ name : pp-2016-MU-Sim10b-${{ github.head_ref }}
4347 snakemake_dir : notebooks
4448 target : deploy
4549 additional_config : |
You can’t perform that action at this time.
0 commit comments