feat(ci): ensure docs and automatic changes get pushed-back to the repo as soon as possible
This commit is contained in:
@@ -103,6 +103,39 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
- name: Create commit
|
||||||
|
id: create-commit
|
||||||
|
uses: stefanzweifel/git-auto-commit-action@c4b132ec2c77a21fcab564bd3c92610cee84b894 # tag=v4
|
||||||
|
with:
|
||||||
|
file_pattern: charts/**/
|
||||||
|
commit_message: "chore: Auto-update chart README [skip ci]"
|
||||||
|
commit_user_name: truecharts-bot
|
||||||
|
commit_user_email: bot@truecharts.org
|
||||||
|
commit_author: truecharts-bot <bot@truecharts.org>
|
||||||
|
|
||||||
|
- name: Save commit hash
|
||||||
|
id: save-commit-hash
|
||||||
|
run: |
|
||||||
|
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}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Commit Website Changes
|
||||||
|
if: |
|
||||||
|
steps.collect-changes.outputs.changesDetected == 'true'
|
||||||
|
run: |
|
||||||
|
cd pub
|
||||||
|
git config user.name "TrueCharts-Bot"
|
||||||
|
git config user.email "bot@truecharts.org"
|
||||||
|
git add --all
|
||||||
|
git commit -sm "Commit released docs for TrueCharts" || exit 0
|
||||||
|
## TODO: actually push the content
|
||||||
|
# git push
|
||||||
|
cd -
|
||||||
|
rm -rf pub
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
||||||
with:
|
with:
|
||||||
@@ -164,39 +197,6 @@ jobs:
|
|||||||
cd -
|
cd -
|
||||||
rm -rf dh_catalog
|
rm -rf dh_catalog
|
||||||
|
|
||||||
- name: Create commit
|
|
||||||
id: create-commit
|
|
||||||
uses: stefanzweifel/git-auto-commit-action@c4b132ec2c77a21fcab564bd3c92610cee84b894 # tag=v4
|
|
||||||
with:
|
|
||||||
file_pattern: charts/**/
|
|
||||||
commit_message: "chore: Auto-update chart README [skip ci]"
|
|
||||||
commit_user_name: truecharts-bot
|
|
||||||
commit_user_email: bot@truecharts.org
|
|
||||||
commit_author: truecharts-bot <bot@truecharts.org>
|
|
||||||
|
|
||||||
- name: Save commit hash
|
|
||||||
id: save-commit-hash
|
|
||||||
run: |
|
|
||||||
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}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Commit Website Changes
|
|
||||||
if: |
|
|
||||||
steps.collect-changes.outputs.changesDetected == 'true'
|
|
||||||
run: |
|
|
||||||
cd pub
|
|
||||||
git config user.name "TrueCharts-Bot"
|
|
||||||
git config user.email "bot@truecharts.org"
|
|
||||||
git add --all
|
|
||||||
git commit -sm "Commit released docs for TrueCharts" || exit 0
|
|
||||||
## TODO: actually push the content
|
|
||||||
# git push
|
|
||||||
cd -
|
|
||||||
rm -rf pub
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ sources:
|
|||||||
- https://grafana.com/oss/loki/
|
- https://grafana.com/oss/loki/
|
||||||
- https://grafana.com/docs/loki/latest/
|
- https://grafana.com/docs/loki/latest/
|
||||||
type: application
|
type: application
|
||||||
version: 2.0.19
|
version: 2.0.20
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- metrics
|
- metrics
|
||||||
|
|||||||
Reference in New Issue
Block a user