update_catalog.yaml 883 B

1234567891011121314151617181920212223242526272829303132
  1. name: catalog_update
  2. on:
  3. push:
  4. branches:
  5. - 'master'
  6. workflow_dispatch:
  7. jobs:
  8. validate:
  9. runs-on: ubuntu-latest
  10. container:
  11. image: ixsystems/catalog_validation:latest
  12. steps:
  13. - uses: actions/checkout@v3
  14. with:
  15. fetch-depth: 0
  16. - name: Add catalog json as a safe directory
  17. run: |
  18. /bin/bash -c "PWD=${pwd}; git config --global --add safe.directory $PWD"
  19. - name: Update catalog details
  20. run: |
  21. /bin/bash -c "PWD=${pwd}; /usr/local/bin/catalog_update update --path $PWD"
  22. - uses: stefanzweifel/git-auto-commit-action@v4
  23. with:
  24. commit_message: Update catalog information
  25. file_pattern: 'catalog.json'
  26. commit_user_name: sonicaj
  27. commit_user_email: waqarsonic1@gmail.com
  28. commit_author: sonicaj <waqarsonic1@gmail.com>