45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
name: example
|
|
|
|
on:
|
|
workflow_dispatch: # allows you to run this workflow manually from the Actions tab
|
|
|
|
jobs:
|
|
main:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: install go-task 3.10.0
|
|
run: |
|
|
wget --no-verbose -O task.tar.gz https://github.com/go-task/task/releases/download/v3.10.0/task_linux_amd64.tar.gz
|
|
sudo tar -xzf task.tar.gz -C /usr/local/bin task && rm task.tar.gz
|
|
- name: install OpenRefine and openrefine-client
|
|
run: task install
|
|
- name: start OpenRefine
|
|
run: task start
|
|
- name: import
|
|
run: task import
|
|
- name: transform
|
|
run: task transform
|
|
- name: export
|
|
run: task export
|
|
- name: print stats
|
|
if: always()
|
|
run: task stats
|
|
- name: check log file
|
|
if: always()
|
|
run: task check
|
|
- name: stop OpenRefine
|
|
if: always()
|
|
run: task stop
|
|
- uses: actions/upload-artifact@v2
|
|
if: always()
|
|
with:
|
|
name: OpenRefine project and logfile
|
|
path: .openrefine/data
|
|
retention-days: 7
|
|
- name: git commit and push
|
|
run: |
|
|
git config user.name "Automated"
|
|
git config user.email "actions@users.noreply.github.com"
|
|
task git
|