mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-15 17:50:49 +00:00
e17a9e5982
Update gh-pages has started failing with default permissions. It needs write permissions to be able to push to the gh-pages branch.
36 lines
852 B
YAML
36 lines
852 B
YAML
name: gh-pages
|
|
on:
|
|
release:
|
|
types: [published, edited]
|
|
|
|
concurrency:
|
|
group: gh-pages
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
update-helm-repo:
|
|
name: Update gh-pages helm repo index
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Install Helm
|
|
uses: azure/setup-helm@v4
|
|
with:
|
|
version: 3.12.3
|
|
|
|
- name: Check out repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Update repo index
|
|
run: |
|
|
git config user.name "Github Actions"
|
|
git config user.email "no-reply@github.com"
|
|
./scripts/github/update-helm-repo.sh ${{ join(github.event.release.assets.*.browser_download_url, ' ') }}
|
|
|
|
- name: Push
|
|
run: git push -f https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} gh-pages
|