-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 1.62 KB
/
create_all_workflows.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
name: create-workflows
on:
push:
jobs:
create-all-workflows:
runs-on: ubuntu-20.04
steps:
- name: checkout simulation data
uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.WRITE_WORKFLOW }}
- name: install prerequisites
run: |
cd util/stmd
npm install yaml
cd ../..
npm install --prefix ./Credibility-Assessment-Framework/Credibility-Development-Kit/util/stmd-crud ./Credibility-Assessment-Framework/Credibility-Development-Kit/util/stmd-crud
- name: create new workflow
env:
GithubBranch: ${{ github.ref_name }}
GithubRepoName: ${{ github.event.repository.name }}
GithubOwner: ${{ github.repository_owner }}
run: node ./util/stmd/parse_to_yaml.js -f "./data/dc-motor/extra/net.pmsf.ssp.stmd/SimulationTask.stmd" -o ./.github/workflows
- name: push workflows
run: |
git config --global user.name "Automated Test Pipeline"
git config --global user.email "[email protected]"
git add ./.github/workflows
git commit -m "Generated new automated all workflow, based on STMD [actions skip]"
git push -f
- name: display result
run: |
echo "Successfully created new workflows" >> $GITHUB_STEP_SUMMARY
# cat ./.github/workflows/continuous_test.yml >> $GITHUB_STEP_SUMMARY