Skip to content

Commit

Permalink
refactor github action workflows to use EdnBug/add-and-commit github …
Browse files Browse the repository at this point in the history
…action cuz old action was causing file permission issues
  • Loading branch information
itewk committed Jul 22, 2021
1 parent c49081d commit d2a0f1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 64 deletions.
56 changes: 1 addition & 55 deletions .github/workflows/publish-helm-charts-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,78 +224,24 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: DEBUG 1
run: |
id
whoami
ls -al
ls -al .git/
ls -al .git/objects
# - name: Configure Git 🛠
# run: |
# git config user.name "$GITHUB_ACTOR"
# git config user.email "[email protected]"

- name: DEBUG 2
run: |
id
whoami
ls -al
ls -al .git/
ls -al .git/objects
- name: Download Helm Charts prepared to release 🔻
id: download-helm-charts
uses: actions/download-artifact@v2
with:
path: ${{ env.CHARTS_DIR }}

- name: DEBUG 3
run: |
id
whoami
ls -al
ls -al .git/
ls -al .git/objects
- name: Push Updated Helm Chart Verions 💾
uses: EndBug/add-and-commit@v7
with:
default_author: github_actor
default_author: github_actions
message: "Updated Helm Chart versions for latest merge to: ${{ github.ref }}"
push: true

# uses: github-actions-x/[email protected]
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# commit-message: "Updated Helm Chart versions for latest merge to: ${{ github.ref }}"
# name: ${{ env.GITHUB_ACTOR }}
# email: ${{ env.GITHUB_ACTOR }}@users.noreply.github.com

- name: DEBUG 4
run: |
id
whoami
ls -al
ls -al .git/
ls -al .git/objects
- name: Setup Helm 🧰
uses: azure/setup-helm@v1
with:
version: v3.6.1

- name: DEBUG 5
run: |
id
whoami
ls -al
ls -al .git/
ls -al .git/objects
- name: Run chart-releaser 🚀
uses: helm/[email protected]
with:
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/publish-helm-charts-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,23 +167,18 @@ jobs:
with:
fetch-depth: 0

- name: Configure Git 🛠
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Download Helm Charts prepared to release 🔻
id: download-helm-charts
uses: actions/download-artifact@v2
with:
path: ${{ env.CHARTS_DIR }}

- name: Push Updated Helm Chart Verions 💾
uses: github-actions-x/commit@v2.7
uses: EndBug/add-and-commit@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: main
commit-message: 'Updated Helm Chart versions for release: v${{ needs.setup.outputs.helm-charts-new-semver }}'
default_author: github_actions
message: "Updated Helm Chart versions for latest merge to: ${{ github.ref }}"
push: true

- name: Setup Helm 🧰
uses: azure/setup-helm@v1
Expand Down

0 comments on commit d2a0f1b

Please sign in to comment.