ci: Exclude README generation from validation

Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2022-02-04 14:21:33 +01:00
parent a8e0296ddf
commit f74e6ebe07
No known key found for this signature in database
GPG Key ID: BC5E2BD907F9A8EC

View File

@ -45,10 +45,6 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 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 - name: Install Kubernetes tools
uses: yokawasa/action-setup-kube-tools@v0.8.0 uses: yokawasa/action-setup-kube-tools@v0.8.0
@ -74,7 +70,8 @@ jobs:
echo "" echo ""
done done
- name: Generate README for changed charts - name: Generate README for changed charts in Renovate PR's
if: inputs.isRenovatePR == 'true'
run: | run: |
CHARTS=(${{ inputs.modifiedCharts }}) CHARTS=(${{ inputs.modifiedCharts }})
for i in "${CHARTS[@]}" for i in "${CHARTS[@]}"
@ -89,6 +86,7 @@ jobs:
- name: Create commit - name: Create commit
id: create-commit id: create-commit
if: inputs.isRenovatePR == 'true'
uses: stefanzweifel/git-auto-commit-action@v4 uses: stefanzweifel/git-auto-commit-action@v4
with: with:
file_pattern: charts/**/ file_pattern: charts/**/
@ -99,7 +97,7 @@ jobs:
- name: Store commit hash - name: Store commit hash
id: store-commit-hash id: store-commit-hash
run: | 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 }}' echo '::set-output name=commit_hash::${{ steps.create-commit.outputs.commit_hash }}'
else else
echo "::set-output name=commit_hash::${GITHUB_SHA}" echo "::set-output name=commit_hash::${GITHUB_SHA}"