1111 - cron : ' 0 0 1 1,4,7,10 *'
1212
1313jobs :
14- run-binary -and-create-pr :
14+ run-script -and-create-pr :
1515 runs-on : ubuntu-latest
1616 steps :
1717 # Checkout the repository
@@ -24,30 +24,20 @@ jobs:
2424 run : |
2525 scripts/fixture-updater.py dojo/fixtures/defect_dojo_sample_data.json
2626 mv output.json dojo/fixtures/defect_dojo_sample_data.json
27+ ./fixture-updater dojo/fixtures/defect_dojo_sample_data_locations.json
28+ mv output.json dojo/fixtures/defect_dojo_sample_data_locations.json
2729
2830 - name : Configure git
2931 run : |
3032 git config --global user.name "${{ env.GIT_USERNAME }}"
3133 git config --global user.email "${{ env.GIT_EMAIL }}"
3234
33- - name : Create and switch to a new branch
34- run : |
35- git checkout -b update-file-$(date +%Y%m%d%H%M%S)
36- git add dojo/fixtures/defect_dojo_sample_data.json
37- git commit -m "Update sample data"
38-
39- - name : Push branch
40- env :
41- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42- run : |
43- git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD)
44-
4535 - name : Create Pull Request
4636 uses : peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
4737 with :
4838 token : ${{ secrets.GITHUB_TOKEN }}
4939 commit-message : " Update sample data"
50- branch : ${{ github.ref_name || 'dev'}}
40+ branch : update-sample-data
5141 base : dev
5242 title : " Update sample data"
53- body : " This pull request updates the sample data."
43+ body : " This pull request updates the timestamps in the sample data to keep them up to date ."
0 commit comments