feat(ci): Implementing logic #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- 'feature/update-helm-values' | |
# TODO: insert - main and - release/* | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
update-helm-values-repository: | |
runs-on: arc-runners | |
timeout-minutes: 90 | |
steps: | |
- name: Checkout out island.is repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
path: island.is | |
- name: Checkout helm-values repository | |
uses: actions/checkout@v4 | |
with: | |
repository: island-is/helm-values | |
ref: main | |
token: ${{ secrets.GH_HELM_VALUES_PAT }} | |
path: helm-values | |
- name: Copy helm charts to helm-values repository | |
run: | | |
echo "$(ls -alh)" | |
echo "$(ls -alh island.is/)" | |
echo "$(ls -alh helm-values/)" | |
cp -R island.is/charts/* helm-values/charts/ | |
- name: Commit and push changes to helm-values repository | |
run: | | |
cd helm-values | |
git config --global user.email "[email protected]" | |
git config --global user.name "CI Bot" | |
git add . | |
git commit -m "Updated helm charts" | |
echo "Showing changeset\n $(git show)" | |
echo "Done commiting" | |
# git push |