update_catalog.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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: Publish catalog
  20. run: |
  21. /bin/bash -c "PWD=${pwd}; /usr/local/bin/catalog_update publish --path $PWD"
  22. - uses: stefanzweifel/git-auto-commit-action@v4
  23. with:
  24. commit_message: Publish new changes in catalog
  25. commit_user_name: sonicaj
  26. commit_user_email: waqarsonic1@gmail.com
  27. commit_author: sonicaj <waqarsonic1@gmail.com>
  28. - name: Update catalog
  29. run: |
  30. /bin/bash -c "PWD=${pwd}; /usr/local/bin/catalog_update update --path $PWD"
  31. - uses: stefanzweifel/git-auto-commit-action@v4
  32. with:
  33. commit_message: Update catalog changes
  34. commit_user_name: sonicaj
  35. commit_user_email: waqarsonic1@gmail.com
  36. commit_author: sonicaj <waqarsonic1@gmail.com>