File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -68,10 +68,26 @@ jobs:
6868 - name : Upload to sciebo
6969 shell : bash
7070 run : |
71- curl -u "$SCIEBO_USR:$SCIEBO_PWD" -T "${{ github.event.inputs.name }}.tar.gz" "https://ruhr-uni-bochum.sciebo.de/public.php/webdav/${{ github.event.inputs.name }}.tar.gz"
72- curl -u "$SCIEBO_USR:$SCIEBO_PWD" -T "${{ github.event.inputs.name }}.tar.gz-CHECKSUM" "https://ruhr-uni-bochum.sciebo.de/public.php/webdav/${{ github.event.inputs.name }}.tar.gz-CHECKSUM"
71+ curl -u "$SCIEBO_USR:$SCIEBO_PWD" -T "${{ github.event.inputs.name }}.tar.gz" "https://ruhr-uni-bochum.sciebo.de/public.php/webdav/${{ github.event.inputs.name }}.tar.gz" --fail
72+ curl -u "$SCIEBO_USR:$SCIEBO_PWD" -T "${{ github.event.inputs.name }}.tar.gz-CHECKSUM" "https://ruhr-uni-bochum.sciebo.de/public.php/webdav/${{ github.event.inputs.name }}.tar.gz-CHECKSUM" --fail
7373 env :
7474 # Login credentials are stored as encrypted secrets in the repository settings on github.
7575 SCIEBO_USR : ${{ secrets.SCIEBO_CRPDATA_USR }}
7676 SCIEBO_PWD : ${{ secrets.SCIEBO_CRPDATA_PWD}}
77-
77+
78+ - name : Create issue on CRPropa3 repository
79+ uses : actions/github-script@v5
80+ with :
81+ script : |
82+ const github = require('@actions/github');
83+ const octokit = github.getOctokit(process.env.GITHUB_TOKEN);
84+ const response = await octokit.rest.issues.create({
85+ owner: 'CRPropa',
86+ repo: 'CRPropa3',
87+ title: 'Update CRPropa data download',
88+ body: 'This issue was automatically created by the upload workflow of CRPropa3-data.
89+ Please check if the download data string is up to date and if not, update the download link in the CMakelists.txt file.
90+ The current download string is: ' + ${{ github.event.inputs.name }} + '.tar.gz'
91+ });
92+ env :
93+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments