Update charts-release.yaml
This commit is contained in:
@@ -73,6 +73,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
||||||
|
if: |
|
||||||
|
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
repository: truecharts/pub
|
repository: truecharts/pub
|
||||||
@@ -107,6 +109,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Create commit
|
- name: Create commit
|
||||||
id: create-commit
|
id: create-commit
|
||||||
|
if: |
|
||||||
|
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
|
||||||
uses: stefanzweifel/git-auto-commit-action@c4b132ec2c77a21fcab564bd3c92610cee84b894 # tag=v4
|
uses: stefanzweifel/git-auto-commit-action@c4b132ec2c77a21fcab564bd3c92610cee84b894 # tag=v4
|
||||||
with:
|
with:
|
||||||
file_pattern: charts/**/
|
file_pattern: charts/**/
|
||||||
@@ -117,6 +121,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Save commit hash
|
- name: Save commit hash
|
||||||
id: save-commit-hash
|
id: save-commit-hash
|
||||||
|
if: |
|
||||||
|
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ steps.create-commit.outputs.changes_detected || 'unknown' }}" = "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 }}'
|
||||||
@@ -139,6 +145,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
||||||
|
if: |
|
||||||
|
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
repository: truecharts/catalog
|
repository: truecharts/catalog
|
||||||
@@ -147,6 +155,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
||||||
|
if: |
|
||||||
|
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
repository: truecharts/dh_catalog
|
repository: truecharts/dh_catalog
|
||||||
@@ -212,18 +222,24 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
||||||
|
if: |
|
||||||
|
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.BOT_TOKEN }}
|
token: ${{ secrets.BOT_TOKEN }}
|
||||||
ref: ${{ steps.save-commit-hash.outputs.commit_hash }}
|
ref: ${{ steps.save-commit-hash.outputs.commit_hash }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Configure Git
|
- name: Configure Git
|
||||||
|
if: |
|
||||||
|
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
|
||||||
run: |
|
run: |
|
||||||
git config user.name "truecharts-bot"
|
git config user.name "truecharts-bot"
|
||||||
git config user.email "bot@truecharts.org"
|
git config user.email "bot@truecharts.org"
|
||||||
|
|
||||||
- name: Run chart-releaser
|
- name: Run chart-releaser
|
||||||
uses: helm/chart-releaser-action@a3454e46a6f5ac4811069a381e646961dda2e1bf # tag=v1.4.0
|
uses: helm/chart-releaser-action@a3454e46a6f5ac4811069a381e646961dda2e1bf # tag=v1.4.0
|
||||||
|
if: |
|
||||||
|
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
|
||||||
with:
|
with:
|
||||||
charts_dir: charts/*
|
charts_dir: charts/*
|
||||||
charts_repo_url: https://charts.truecharts.org
|
charts_repo_url: https://charts.truecharts.org
|
||||||
|
|||||||
Reference in New Issue
Block a user