Skip to content

Bump helm/chart-releaser-action from 1.6.0 to 1.7.0 in the actions group #138

Bump helm/chart-releaser-action from 1.6.0 to 1.7.0 in the actions group

Bump helm/chart-releaser-action from 1.6.0 to 1.7.0 in the actions group #138

Workflow file for this run

---
name: CI
on:
pull_request:
workflow_dispatch:
push:
branches: [ main ]
tags:
- 'ggscout-*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
test:
runs-on: ubuntu-latest
env:
HELM_CACHE_HOME: /tmp/helm-cache/
steps:
- uses: actions/checkout@v4
- uses: jdx/mise-action@v2
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- run: pre-commit run --show-diff-on-failure --color=always --all-files
shell: bash
release:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
permissions:
contents: write
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- uses: jdx/mise-action@v2
- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
skip_existing: true
- name: Copy folder to target branch
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git fetch origin
git checkout gh-pages
git checkout ${{ github.ref }} -- docs
git add docs
git commit -m "Copy docs from ${{ github.ref }}"
git push origin gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-docs:
permissions:
contents: write
needs: release
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Fetch origin
run: git fetch origin
- name: Checkout gh-pages
run: git checkout gh-pages
- name: Checkout docs from the current branch
run: git checkout ${{ github.ref }} -- docs
- name: Add docs
run: git add docs
- name: Check for changes
id: check_changes
run: |
if git diff --cached --exit-code; then
echo "No changes to commit"
echo "changes=false" >> $GITHUB_ENV
else
echo "changes=true" >> $GITHUB_ENV
fi
- name: Commit and push changes
if: env.changes == 'true'
run: |
git commit -m "Copy docs from ${{ github.ref }}"
git push origin gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}