Skip to content

Commit

Permalink
Remove automatic issue creation (not working) and update version of u…
Browse files Browse the repository at this point in the history
…sed actions
  • Loading branch information
lukasmerten committed Mar 13, 2024
1 parent b6e7e5b commit 603e3fa
Showing 1 changed file with 28 additions and 27 deletions.
55 changes: 28 additions & 27 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
# 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 }}

0 comments on commit 603e3fa

Please sign in to comment.