Skip to content

Commit fc42dff

Browse files
authored
Merge pull request CRPropa#21 from lukasmerten/AutoIssue
Add automated issue openening
2 parents d4e0001 + 29b7674 commit fc42dff

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

‎.github/workflows/upload.yml‎

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)