fix(ci): reshuffle when certain things are called and fix local syntaxis error
This commit is contained in:
parent
9a3883de1c
commit
d5c7e88a35
|
@ -54,16 +54,14 @@ runs:
|
||||||
id: filter-bumped-charts
|
id: filter-bumped-charts
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
local repo_root
|
|
||||||
repo_root=$(git rev-parse --show-toplevel)
|
repo_root=$(git rev-parse --show-toplevel)
|
||||||
pushd "$repo_root" > /dev/null
|
pushd "$repo_root" > /dev/null
|
||||||
|
|
||||||
echo 'Looking up latest tag...'
|
echo 'Looking up latest tag...'
|
||||||
local latest_tag
|
|
||||||
latest_tag=$(lookup_latest_tag)
|
latest_tag=$(lookup_latest_tag)
|
||||||
|
|
||||||
echo "Discovering changed charts since '$latest_tag'..."
|
echo "Discovering changed charts since '$latest_tag'..."
|
||||||
local changed_charts=()
|
changed_charts=()
|
||||||
readarray -t changed_charts <<< "$(lookup_changed_charts "$latest_tag")"
|
readarray -t changed_charts <<< "$(lookup_changed_charts "$latest_tag")"
|
||||||
|
|
||||||
if [ ${#changed_charts[@]} -eq 0 ]; then
|
if [ ${#changed_charts[@]} -eq 0 ]; then
|
||||||
|
|
|
@ -17,28 +17,6 @@ jobs:
|
||||||
image: ghcr.io/truecharts/devcontainer:v2.2.1@sha256:4ace13c049bf00f85c63e0070f86b71656a7c3b2113aa3e21c3107f3d1f7bf87
|
image: ghcr.io/truecharts/devcontainer:v2.2.1@sha256:4ace13c049bf00f85c63e0070f86b71656a7c3b2113aa3e21c3107f3d1f7bf87
|
||||||
concurrency: gitpush
|
concurrency: gitpush
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.BOT_TOKEN }}
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
repository: truecharts/catalog
|
|
||||||
token: ${{ secrets.BOT_TOKEN }}
|
|
||||||
path: catalog
|
|
||||||
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
repository: truecharts/dh_catalog
|
|
||||||
token: ${{ secrets.BOT_TOKEN }}
|
|
||||||
path: dh_catalog
|
|
||||||
|
|
||||||
- name: Install Kubernetes tools
|
- name: Install Kubernetes tools
|
||||||
uses: yokawasa/action-setup-kube-tools@c81bf94cddd6c3172e6f61aa7f5ad66a2b5db98d # tag=v0.8.0
|
uses: yokawasa/action-setup-kube-tools@c81bf94cddd6c3172e6f61aa7f5ad66a2b5db98d # tag=v0.8.0
|
||||||
with:
|
with:
|
||||||
|
@ -51,14 +29,20 @@ jobs:
|
||||||
wget -O /tmp/helm-docs.deb https://github.com/k8s-at-home/helm-docs/releases/download/v0.1.1/helm-docs_0.1.1_Linux_x86_64.deb
|
wget -O /tmp/helm-docs.deb https://github.com/k8s-at-home/helm-docs/releases/download/v0.1.1/helm-docs_0.1.1_Linux_x86_64.deb
|
||||||
sudo dpkg -i /tmp/helm-docs.deb
|
sudo dpkg -i /tmp/helm-docs.deb
|
||||||
|
|
||||||
- name: Generate README for changed charts
|
- name: Checkout
|
||||||
run: |
|
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
||||||
.github/scripts/gen-docs.sh
|
with:
|
||||||
|
token: ${{ secrets.BOT_TOKEN }}
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Collect changes
|
- name: Collect changes
|
||||||
id: collect-changes
|
id: collect-changes
|
||||||
uses: ./.github/actions/collect-changes
|
uses: ./.github/actions/collect-changes
|
||||||
|
|
||||||
|
- name: Generate README for changed charts
|
||||||
|
run: |
|
||||||
|
.github/scripts/gen-docs.sh
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
||||||
with:
|
with:
|
||||||
|
@ -93,6 +77,22 @@ jobs:
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
repository: truecharts/catalog
|
||||||
|
token: ${{ secrets.BOT_TOKEN }}
|
||||||
|
path: catalog
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
repository: truecharts/dh_catalog
|
||||||
|
token: ${{ secrets.BOT_TOKEN }}
|
||||||
|
path: dh_catalog
|
||||||
|
|
||||||
- name: build catalogs
|
- name: build catalogs
|
||||||
if: |
|
if: |
|
||||||
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
|
steps.collect-changes.outputs.changesDetectedAfterTag == 'true'
|
||||||
|
|
Loading…
Reference in New Issue