use github context
This commit is contained in:
parent
02af29fec1
commit
78567e5f44
|
@ -1,26 +1,26 @@
|
||||||
name: all-tasks # available as environment variable $GITHUB_WORKFLOW
|
name: run all tasks
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # allows you to run this workflow manually from the Actions tab
|
workflow_dispatch: # allows you to run this workflow manually from the Actions tab
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
example-doaj: # available as environment variable $GITHUB_JOB
|
example-doaj: # available as environment variable $GITHUB_JOB and context ${{ github.job }}
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2 # checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
- uses: actions/checkout@v2
|
||||||
- name: install go-task
|
- name: install go-task
|
||||||
run: |
|
run: |
|
||||||
wget https://github.com/go-task/task/releases/download/v3.2.2/task_linux_amd64.deb
|
wget https://github.com/go-task/task/releases/download/v3.2.2/task_linux_amd64.deb
|
||||||
sudo apt-get install ./task_linux_amd64.deb && rm task_linux_amd64.deb
|
sudo apt-get install ./task_linux_amd64.deb && rm task_linux_amd64.deb
|
||||||
- name: install OpenRefine and openrefine-client
|
- name: install OpenRefine and openrefine-client
|
||||||
run: task install
|
run: task install
|
||||||
- name: run task
|
- name: run task ${{ github.job }}
|
||||||
run: task "$GITHUB_JOB:main"
|
run: task "$GITHUB_JOB:main"
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: doaj data
|
name: ${{ github.job }}
|
||||||
path: "$GITHUB_JOB"
|
path: ${{ github.job }}
|
||||||
- name: commit and push if output changed # has nothing to do currently because of .gitignore
|
- name: commit and push if output changed # has nothing to do currently because of .gitignore
|
||||||
run: |-
|
run: |-
|
||||||
git config user.name "Automated"
|
git config user.name "Automated"
|
||||||
|
@ -29,23 +29,23 @@ jobs:
|
||||||
git status
|
git status
|
||||||
git commit -m "latest change: $(date -u)" || exit 0
|
git commit -m "latest change: $(date -u)" || exit 0
|
||||||
git push
|
git push
|
||||||
example-duplicates: # available as environment variable $GITHUB_JOB
|
example-duplicates: # available as environment variable $GITHUB_JOB and context ${{ github.job }}
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2 # checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
- uses: actions/checkout@v2
|
||||||
- name: install go-task
|
- name: install go-task
|
||||||
run: |
|
run: |
|
||||||
wget https://github.com/go-task/task/releases/download/v3.2.2/task_linux_amd64.deb
|
wget https://github.com/go-task/task/releases/download/v3.2.2/task_linux_amd64.deb
|
||||||
sudo apt-get install ./task_linux_amd64.deb && rm task_linux_amd64.deb
|
sudo apt-get install ./task_linux_amd64.deb && rm task_linux_amd64.deb
|
||||||
- name: install OpenRefine and openrefine-client
|
- name: install OpenRefine and openrefine-client
|
||||||
run: task install
|
run: task install
|
||||||
- name: run task
|
- name: run task ${{ github.job }}
|
||||||
run: task "$GITHUB_JOB:main"
|
run: task "$GITHUB_JOB:main"
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: duplicates data
|
name: ${{ github.job }}
|
||||||
path: "$GITHUB_JOB"
|
path: ${{ github.job }}
|
||||||
- name: commit and push if output changed # has nothing to do currently because of .gitignore
|
- name: commit and push if output changed # has nothing to do currently because of .gitignore
|
||||||
run: |-
|
run: |-
|
||||||
git config user.name "Automated"
|
git config user.name "Automated"
|
||||||
|
@ -54,23 +54,23 @@ jobs:
|
||||||
git status
|
git status
|
||||||
git commit -m "latest change: $(date -u)" || exit 0
|
git commit -m "latest change: $(date -u)" || exit 0
|
||||||
git push
|
git push
|
||||||
example-powerhouse: # available as environment variable $GITHUB_JOB
|
example-powerhouse: # available as environment variable $GITHUB_JOB and context ${{ github.job }}
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2 # checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
- uses: actions/checkout@v2
|
||||||
- name: install go-task
|
- name: install go-task
|
||||||
run: |
|
run: |
|
||||||
wget https://github.com/go-task/task/releases/download/v3.2.2/task_linux_amd64.deb
|
wget https://github.com/go-task/task/releases/download/v3.2.2/task_linux_amd64.deb
|
||||||
sudo apt-get install ./task_linux_amd64.deb && rm task_linux_amd64.deb
|
sudo apt-get install ./task_linux_amd64.deb && rm task_linux_amd64.deb
|
||||||
- name: install OpenRefine and openrefine-client
|
- name: install OpenRefine and openrefine-client
|
||||||
run: task install
|
run: task install
|
||||||
- name: run task
|
- name: run task ${{ github.job }}
|
||||||
run: task "$GITHUB_JOB:main"
|
run: task "$GITHUB_JOB:main"
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: powerhouse data
|
name: ${{ github.job }}
|
||||||
path: "$GITHUB_JOB"
|
path: ${{ github.job }}
|
||||||
- name: commit and push if output changed # has nothing to do currently because of .gitignore
|
- name: commit and push if output changed # has nothing to do currently because of .gitignore
|
||||||
run: |-
|
run: |-
|
||||||
git config user.name "Automated"
|
git config user.name "Automated"
|
||||||
|
|
Loading…
Reference in New Issue