updated checkout action

master
Martin Scheidt 2022-04-18 18:03:18 +02:00
parent cc95bf8a15
commit 4e9f5ea052
5 changed files with 16 additions and 19 deletions

View File

@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out a copy of the repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Validate a CITATION.cff from a subdirectory
uses: citation-file-format/cffconvert-github-action@2.0.0

View File

@ -18,7 +18,7 @@ jobs:
steps:
# checkout the repo
- name: "checkout"
uses: actions/checkout@v2
uses: actions/checkout@v3
# create package and release notes
- name: "create tikz-trackschematic package"
@ -55,7 +55,7 @@ jobs:
steps:
- name: "checkout"
# 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/
- uses: actions/download-artifact@v3
@ -108,7 +108,7 @@ jobs:
## opening a debug console
- name: Setup upterm session
env:
# ZENODO_ACCESS_TOKEN: ${{ secrets.ZENODO_ACCESS_TOKEN }}
ZENODO_ACCESS_TOKEN: ${{ secrets.ZENODO_ACCESS_TOKEN }}
ZENODO_SANDBOX_ACCESS_TOKEN: ${{ secrets.ZENODO_SANDBOX_ACCESS_TOKEN }}
uses: lhotari/action-upterm@v1
with:

View File

@ -27,7 +27,7 @@ jobs:
# 2. checkout the repo
- name: "checkout"
uses: actions/checkout@v2
uses: actions/checkout@v3
# 3. install TeX Live
- name: "install ghostscript"
@ -160,22 +160,19 @@ jobs:
steps:
# 1. checkout the repo
- name: "checkout"
uses: actions/checkout@v2
uses: actions/checkout@v3
# 2. update CITATION.cff
- run: ./build.sh --update-cite ${{needs.publish_zenodo.outputs.doi}}
# 3. push the change back to master
- name: push
uses: github-actions-x/commit@v2.8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: 'master'
force-add: 'true'
files: CITATION.cff
commit-message: 'DOI updated to ${{needs.create_package.outputs.version}} (via github action)'
name: Martin Scheidt
email: m.scheidt@tu-bs.de
run: |
git config user.name railtoolkit
git config user.email railtoolkit@ownx.net
git add CITATION.cff
git commit -m "DOI updated to ${{needs.create_package.outputs.version}} (via github action)"
git push
publish_twitter:
needs: [create_package, publish_zenodo]

View File

@ -24,7 +24,7 @@ jobs:
steps:
- name: "checkout"
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: "install ghostscript"
run: sudo apt-get install -y ghostscript

View File

@ -22,7 +22,7 @@ jobs:
# checkout the repo
- name: "checkout"
uses: actions/checkout@v2
uses: actions/checkout@v3
# create package and release notes
- name: "create tikz-trackschematic package"
@ -51,7 +51,7 @@ jobs:
# steps:
# # checkout the repo
# - name: "checkout"
# uses: actions/checkout@v2
# uses: actions/checkout@v3
# # download artifact in folder artifact/
# - uses: actions/download-artifact@v3
@ -110,7 +110,7 @@ jobs:
steps:
# 1. checkout the repo for zenodraft/action@0.10.0 to work
- name: "checkout"
uses: actions/checkout@v2
uses: actions/checkout@v3
- run: ./build.sh --update-cite ${{needs.publish_zenodo.outputs.doi}}