updated checkout action
parent
cc95bf8a15
commit
4e9f5ea052
|
@ -17,7 +17,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out a copy of the repository
|
- name: Check out a copy of the repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Validate a CITATION.cff from a subdirectory
|
- name: Validate a CITATION.cff from a subdirectory
|
||||||
uses: citation-file-format/cffconvert-github-action@2.0.0
|
uses: citation-file-format/cffconvert-github-action@2.0.0
|
||||||
|
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
# checkout the repo
|
# checkout the repo
|
||||||
- name: "checkout"
|
- name: "checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# create package and release notes
|
# create package and release notes
|
||||||
- name: "create tikz-trackschematic package"
|
- name: "create tikz-trackschematic package"
|
||||||
|
@ -55,7 +55,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: "checkout"
|
- name: "checkout"
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# download artifact in folder artifact/
|
# download artifact in folder artifact/
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
|
@ -108,7 +108,7 @@ jobs:
|
||||||
## opening a debug console
|
## opening a debug console
|
||||||
- name: Setup upterm session
|
- name: Setup upterm session
|
||||||
env:
|
env:
|
||||||
# ZENODO_ACCESS_TOKEN: ${{ secrets.ZENODO_ACCESS_TOKEN }}
|
ZENODO_ACCESS_TOKEN: ${{ secrets.ZENODO_ACCESS_TOKEN }}
|
||||||
ZENODO_SANDBOX_ACCESS_TOKEN: ${{ secrets.ZENODO_SANDBOX_ACCESS_TOKEN }}
|
ZENODO_SANDBOX_ACCESS_TOKEN: ${{ secrets.ZENODO_SANDBOX_ACCESS_TOKEN }}
|
||||||
uses: lhotari/action-upterm@v1
|
uses: lhotari/action-upterm@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -27,7 +27,7 @@ jobs:
|
||||||
|
|
||||||
# 2. checkout the repo
|
# 2. checkout the repo
|
||||||
- name: "checkout"
|
- name: "checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# 3. install TeX Live
|
# 3. install TeX Live
|
||||||
- name: "install ghostscript"
|
- name: "install ghostscript"
|
||||||
|
@ -160,22 +160,19 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
# 1. checkout the repo
|
# 1. checkout the repo
|
||||||
- name: "checkout"
|
- name: "checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# 2. update CITATION.cff
|
# 2. update CITATION.cff
|
||||||
- run: ./build.sh --update-cite ${{needs.publish_zenodo.outputs.doi}}
|
- run: ./build.sh --update-cite ${{needs.publish_zenodo.outputs.doi}}
|
||||||
|
|
||||||
# 3. push the change back to master
|
# 3. push the change back to master
|
||||||
- name: push
|
- name: push
|
||||||
uses: github-actions-x/commit@v2.8
|
run: |
|
||||||
with:
|
git config user.name railtoolkit
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
git config user.email railtoolkit@ownx.net
|
||||||
push-branch: 'master'
|
git add CITATION.cff
|
||||||
force-add: 'true'
|
git commit -m "DOI updated to ${{needs.create_package.outputs.version}} (via github action)"
|
||||||
files: CITATION.cff
|
git push
|
||||||
commit-message: 'DOI updated to ${{needs.create_package.outputs.version}} (via github action)'
|
|
||||||
name: Martin Scheidt
|
|
||||||
email: m.scheidt@tu-bs.de
|
|
||||||
|
|
||||||
publish_twitter:
|
publish_twitter:
|
||||||
needs: [create_package, publish_zenodo]
|
needs: [create_package, publish_zenodo]
|
||||||
|
|
|
@ -24,7 +24,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: "checkout"
|
- name: "checkout"
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: "install ghostscript"
|
- name: "install ghostscript"
|
||||||
run: sudo apt-get install -y ghostscript
|
run: sudo apt-get install -y ghostscript
|
||||||
|
|
|
@ -22,7 +22,7 @@ jobs:
|
||||||
|
|
||||||
# checkout the repo
|
# checkout the repo
|
||||||
- name: "checkout"
|
- name: "checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# create package and release notes
|
# create package and release notes
|
||||||
- name: "create tikz-trackschematic package"
|
- name: "create tikz-trackschematic package"
|
||||||
|
@ -51,7 +51,7 @@ jobs:
|
||||||
# steps:
|
# steps:
|
||||||
# # checkout the repo
|
# # checkout the repo
|
||||||
# - name: "checkout"
|
# - name: "checkout"
|
||||||
# uses: actions/checkout@v2
|
# uses: actions/checkout@v3
|
||||||
|
|
||||||
# # download artifact in folder artifact/
|
# # download artifact in folder artifact/
|
||||||
# - uses: actions/download-artifact@v3
|
# - uses: actions/download-artifact@v3
|
||||||
|
@ -110,7 +110,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
# 1. checkout the repo for zenodraft/action@0.10.0 to work
|
# 1. checkout the repo for zenodraft/action@0.10.0 to work
|
||||||
- name: "checkout"
|
- name: "checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- run: ./build.sh --update-cite ${{needs.publish_zenodo.outputs.doi}}
|
- run: ./build.sh --update-cite ${{needs.publish_zenodo.outputs.doi}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue