Skip to content

Update pull_metadata.yml #2

Update pull_metadata.yml

Update pull_metadata.yml #2

Workflow file for this run

# This is a workflow to pull all of the metadata from all of the modules into a single file
# each time something is merged to main, this workflow will run and rebuild the metadata file.
name: pull_metadata
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: ["metadata_workflow"]
paths-ignore:
- 'assets/**'
- '_for_authors/**'
- '_module_templates/**'
#pull_request:
# branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Runs a set of commands using the runners shell
- name: Run all scripts
run: |
bash .github/scripts/process_metadata.sh
- name: Commit newly updated files
run:
git config --local user.name actions-user
git config --local user.email "[email protected]"
git fetch
git add *
git commit -am "update metadata records"
git push -f origin metadata_workflow