sync-extensions.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. name: Sync and Release Extensions
  2. on:
  3. push:
  4. branches:
  5. - main
  6. paths:
  7. - manifest.json
  8. env:
  9. ACTIONS_RUNNER_DEBUG: false
  10. CI_COMMIT_MESSAGE: CI Build Artifacts
  11. jobs:
  12. sync:
  13. if: github.repository_owner == 'rancher'
  14. name: Sync and Release Extensions
  15. runs-on: ubuntu-latest
  16. permissions: write-all
  17. steps:
  18. - name: Checkout
  19. uses: actions/checkout@v3
  20. - name: Configure Git
  21. run: |
  22. git config user.name github-actions
  23. git config user.email github-actions@github.com
  24. - name: Setup Helm
  25. uses: azure/setup-helm@v3
  26. with:
  27. version: v3.12.1
  28. - name: Setup yq
  29. uses: chrisdickinson/setup-yq@v1.0.1
  30. with:
  31. yq-version: v4.34.2
  32. - name: Run sync script
  33. shell: bash
  34. id: sync_script
  35. run: |
  36. chmod +x ./scripts/sync
  37. ./scripts/sync
  38. - name: Commit build
  39. run: |
  40. git add ./{assets,charts,extensions,icons,index.yaml}
  41. git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
  42. git push
  43. - name: Run chart-releaser
  44. uses: helm/chart-releaser-action@v1.5.0
  45. with:
  46. charts_dir: ./charts/*
  47. env:
  48. CR_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
  49. CR_SKIP_EXISTING: true