# Categories need to be pulled out of the individual dataset files.

name: Update categories

concurrency: 
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

on:
  push : [main]


jobs:
  build-and-push-image:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      packages: write

    steps:
      - name: Checkout repository
        uses: actions/checkout@v2
        with:
          submodules: 'true'

      - name: run category updater
        shell: bash
        run: |
          ruby script/generate_categories.rb

      - name: Push new data
        uses: stefanzweifel/git-auto-commit-action@v4
        with:
          commit_message: "Update categories based on entries."
# Categories need to be pulled out of the individual dataset files.

name: Update categories

concurrency: 
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

on:
  push: 
    branches: ["main"]


jobs:
  update-categories:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      packages: write

    steps:
      - name: Checkout repository
        uses: actions/checkout@v2
        with:
          submodules: 'true'

      - name: run category updater
        shell: bash
        run: |
          ruby script/generate_categories.rb

      - name: Push new data
        uses: stefanzweifel/git-auto-commit-action@v4
        with:
          commit_message: "Update categories based on entries."
Update branch fix in ghaction
Update branch fix in ghaction
