Skip to content

Update tool_and_resource_list.yml #57

Update tool_and_resource_list.yml

Update tool_and_resource_list.yml #57

Workflow file for this run

name: Pull data.yml from australianbiocommons.github.io
on:
workflow_dispatch:
push:
jobs:
pull-file:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout source
uses: actions/checkout@v3
with:
repository: AustralianBioCommons/australianbiocommons.github.io
path: temporary_folder
- name: Update
run: |
ls temporary_folder/data
cp -u temporary_folder/data/data.yaml _data/data.yaml
cd ..
- name: Remove
run: |
rm -r temporary_folder
- name: Check for changes
run: |
if git diff --quiet; then
echo "There is no change in data.yaml."
echo "exiting = true" >> $GITHUB_ENV
fi
- name: Commit
if: env.exiting != 'true'
run: |
git config user.name github-actions
git config user.email [email protected]
git add _data/data.yaml
git commit -m "Updated the data.yml sourced from australianbiocommons.github.io"
git push