mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
ci: Exclude README generation from validation
Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
parent
a8e0296ddf
commit
f74e6ebe07
10
.github/workflows/charts-readme.yaml
vendored
10
.github/workflows/charts-readme.yaml
vendored
@ -45,10 +45,6 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.head_ref }}
|
||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
||||
|
||||
- name: Install Kubernetes tools
|
||||
uses: yokawasa/action-setup-kube-tools@v0.8.0
|
||||
@ -74,7 +70,8 @@ jobs:
|
||||
echo ""
|
||||
done
|
||||
|
||||
- name: Generate README for changed charts
|
||||
- name: Generate README for changed charts in Renovate PR's
|
||||
if: inputs.isRenovatePR == 'true'
|
||||
run: |
|
||||
CHARTS=(${{ inputs.modifiedCharts }})
|
||||
for i in "${CHARTS[@]}"
|
||||
@ -89,6 +86,7 @@ jobs:
|
||||
|
||||
- name: Create commit
|
||||
id: create-commit
|
||||
if: inputs.isRenovatePR == 'true'
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
file_pattern: charts/**/
|
||||
@ -99,7 +97,7 @@ jobs:
|
||||
- name: Store commit hash
|
||||
id: store-commit-hash
|
||||
run: |
|
||||
if [ "${{ steps.create-commit.outputs.changes_detected }}" == "true" ]; then
|
||||
if [ "${{ steps.create-commit.outputs.changes_detected || 'unknown' }}" == "true" ]; then
|
||||
echo '::set-output name=commit_hash::${{ steps.create-commit.outputs.commit_hash }}'
|
||||
else
|
||||
echo "::set-output name=commit_hash::${GITHUB_SHA}"
|
||||
|
Loading…
Reference in New Issue
Block a user