From d2a0f1b12e04c1b9ae2245e169b5bc10550f6018 Mon Sep 17 00:00:00 2001 From: Ian Tewksbury Date: Thu, 22 Jul 2021 14:06:43 -0400 Subject: [PATCH] refactor github action workflows to use EdnBug/add-and-commit github action cuz old action was causing file permission issues --- .../workflows/publish-helm-charts-edge.yml | 56 +------------------ .../workflows/publish-helm-charts-release.yml | 13 ++--- 2 files changed, 5 insertions(+), 64 deletions(-) diff --git a/.github/workflows/publish-helm-charts-edge.yml b/.github/workflows/publish-helm-charts-edge.yml index c52c26c..5f194fb 100644 --- a/.github/workflows/publish-helm-charts-edge.yml +++ b/.github/workflows/publish-helm-charts-edge.yml @@ -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 "$GITHUB_ACTOR@users.noreply.github.com" - - - 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/commit@v2.8 -# 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/chart-releaser-action@v1.2.1 with: diff --git a/.github/workflows/publish-helm-charts-release.yml b/.github/workflows/publish-helm-charts-release.yml index dbc830c..d61b0ad 100644 --- a/.github/workflows/publish-helm-charts-release.yml +++ b/.github/workflows/publish-helm-charts-release.yml @@ -167,11 +167,6 @@ jobs: with: fetch-depth: 0 - - name: Configure Git 🛠 - run: | - git config user.name "$GITHUB_ACTOR" - git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - - name: Download Helm Charts prepared to release 🔻 id: download-helm-charts uses: actions/download-artifact@v2 @@ -179,11 +174,11 @@ jobs: 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