sync-extensions.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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: Run sync script
  29. shell: bash
  30. id: sync_script
  31. run: |
  32. chmod +x ./scripts/sync
  33. ./scripts/sync
  34. - name: Commit build
  35. run: |
  36. git add ./{assets,charts,extensions,icons,index.yaml}
  37. git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
  38. git push
  39. - name: Run chart-releaser
  40. uses: helm/chart-releaser-action@v1.5.0
  41. with:
  42. charts_dir: ./charts/*
  43. env:
  44. CR_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
  45. CR_SKIP_EXISTING: true