diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml index 8d788ac..afc5102 100644 --- a/.github/workflows/upload.yml +++ b/.github/workflows/upload.yml @@ -29,7 +29,7 @@ jobs: # Create and Upload a file containing the current date to SCIEBO - name: Download artifact id: download-artifact - uses: dawidd6/action-download-artifact@v2 + uses: dawidd6/action-download-artifact@v3 with: # Optional, workflow file name or ID # If not specified, will be inferred from run_id (if run_id is specified), or will be the current workflow @@ -64,30 +64,31 @@ jobs: - name: Display structure of downloaded files run: ls -R - - - name: Upload to sciebo - shell: bash - run: | - 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 - 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 - env: - # Login credentials are stored as encrypted secrets in the repository settings on github. - SCIEBO_USR: ${{ secrets.SCIEBO_CRPDATA_USR }} - SCIEBO_PWD: ${{ secrets.SCIEBO_CRPDATA_PWD}} - - name: Create issue on CRPropa3 repository - uses: actions/github-script@v5 - with: - script: | - const github = require('@actions/github'); - const octokit = github.getOctokit(process.env.GITHUB_TOKEN); - const response = await octokit.rest.issues.create({ - owner: 'CRPropa', - repo: 'CRPropa3', - title: 'Update CRPropa data download', - body: 'This issue was automatically created by the upload workflow of CRPropa3-data. - Please check if the download data string is up to date and if not, update the download link in the CMakelists.txt file. - The current download string is: ' + ${{ github.event.inputs.name }} + '.tar.gz' - }); - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + # 2024-03-11: Currently not working. Could be used as a starting point for some future updates. + #- name: Upload to sciebo + # shell: bash + # run: | + # 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 + # 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 + # env: + # # Login credentials are stored as encrypted secrets in the repository settings on github. + # SCIEBO_USR: ${{ secrets.SCIEBO_CRPDATA_USR }} + # SCIEBO_PWD: ${{ secrets.SCIEBO_CRPDATA_PWD}} + # + #- name: Create issue on CRPropa3 repository + # uses: actions/github-script@v7 + # with: + # script: | + # const github = require('@actions/github'); + # const octokit = github.getOctokit(process.env.GITHUB_TOKEN); + # const response = await octokit.rest.issues.create({ + # owner: 'CRPropa', + # repo: 'CRPropa3', + # title: 'Update CRPropa data download', + # body: 'This issue was automatically created by the upload workflow of CRPropa3-data. + # Please check if the download data string is up to date and if not, update the download link in the CMakelists.txt file. + # The current download string is: ' + ${{ github.event.inputs.name }} + '.tar.gz' + # }); + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file