Skip to content

Commit

Permalink
updated debug workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jspaaks committed Feb 1, 2024
1 parent cc65c9d commit c517557
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 56 deletions.
120 changes: 64 additions & 56 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,71 +14,79 @@ jobs:
steps:
- name: checkout
uses: actions/checkout@v4
- name: make contents of the repo unique
run: |
date +'%B %d, %Y %H:%M:%S' > last-update.txt
git config --global user.name 'jspaaks via CI'
git config --global user.email '[email protected]'
git add last-update.txt
git commit -m "bumped last update date"
git push
- name: Test without any input arguments / creating a draft in a new concept
uses: zenodraft/action@dbg
with:
verbose: true


in-concept:
needs: no-args
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Test creating a draft in an existing concept
uses: zenodraft/action@dbg
with:
concept: '23750'
metadata: .github/.zenodo-in-concept.json
verbose: true
#in-concept:
# needs: no-args
# runs-on: ubuntu-latest
# steps:
# - name: checkout
# uses: actions/checkout@v4
# - name: Test creating a draft in an existing concept
# uses: zenodraft/action@dbg
# with:
# concept: '23750'
# metadata: .github/.zenodo-in-concept.json
# verbose: true


with-filenames:
needs: in-concept
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Generate dummy files
run: |
echo "txt contents" > test.txt
echo "pdf contents" > test.pdf
- name: Test with filenames
uses: zenodraft/action@dbg
with:
filenames: test.txt test.pdf
metadata: .github/.zenodo-with-filenames.json
verbose: true
#with-filenames:
# needs: in-concept
# runs-on: ubuntu-latest
# steps:
# - name: checkout
# uses: actions/checkout@v4
# - name: Generate dummy files
# run: |
# echo "txt contents" > test.txt
# echo "pdf contents" > test.pdf
# - name: Test with filenames
# uses: zenodraft/action@dbg
# with:
# filenames: test.txt test.pdf
# metadata: .github/.zenodo-with-filenames.json
# verbose: true


with-compression-tar-gz:
needs: with-filenames
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Test with compression tar.gz instead of default zip
uses: zenodraft/action@dbg
with:
compression: tar.gz
metadata: .github/.zenodo-with-compression-tar-gz.json
verbose: true
#with-compression-tar-gz:
# needs: with-filenames
# runs-on: ubuntu-latest
# steps:
# - name: checkout
# uses: actions/checkout@v4
# - name: Test with compression tar.gz instead of default zip
# uses: zenodraft/action@dbg
# with:
# compression: tar.gz
# metadata: .github/.zenodo-with-compression-tar-gz.json
# verbose: true


with-upserting:
needs: with-compression-tar-gz
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Test upserting the CITATION.cff with the prereserved doi
uses: zenodraft/action@dbg
with:
upsert-doi: true
upsert-location: identifiers
metadata: .github/.zenodo-upserting.json
filenames: CITATION.cff
verbose: true
- name: check CITATION.cff
run: cat CITATION.cff
#with-upserting:
# needs: with-compression-tar-gz
# runs-on: ubuntu-latest
# steps:
# - name: checkout
# uses: actions/checkout@v4
# - name: Test upserting the CITATION.cff with the prereserved doi
# uses: zenodraft/action@dbg
# with:
# upsert-doi: true
# upsert-location: identifiers
# metadata: .github/.zenodo-upserting.json
# filenames: CITATION.cff
# verbose: true
# - name: check CITATION.cff
# run: cat CITATION.cff
1 change: 1 addition & 0 deletions last-update.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
February 01, 2024 17:24:01

0 comments on commit c517557

Please sign in to comment.