From 951cdba37445809c49ea1b381c8f59462235a76d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=97=AA=D1=94=CE=BD=CE=B9=CE=B7=20=E1=97=B7=CF=85=D0=BD?= =?UTF-8?q?=CA=9F?= Date: Sun, 14 Feb 2021 11:13:55 -0500 Subject: [PATCH] [actions] remove updating timestamps in index.yaml (#585) * actions: remove updating timestamps * Update charts-release.yaml --- .github/workflows/charts-release.yaml | 40 ++------------------------- 1 file changed, 3 insertions(+), 37 deletions(-) diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml index 6cbd0a7e..74c70169 100644 --- a/.github/workflows/charts-release.yaml +++ b/.github/workflows/charts-release.yaml @@ -45,46 +45,12 @@ jobs: uses: azure/setup-helm@v1 with: version: v3.4.0 - + + # Waiting on new version to be released that supports updating the genereated timestamp field + # https://github.com/helm/chart-releaser/issues/103 - name: Run chart-releaser uses: helm/chart-releaser-action@v1.1.0 with: charts_repo_url: https://k8s-at-home.com/charts/ env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - - # Update the generated timestamp in the index.yaml - # needed until https://github.com/helm/chart-releaser/issues/90 - # or helm/chart-releaser-action supports this - post-release: - needs: release - runs-on: ubuntu-latest - steps: - - name: Block concurrent jobs - uses: softprops/turnstyle@v1 - with: - continue-after-seconds: 180 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Checkout - uses: actions/checkout@v2 - with: - ref: "gh-pages" - fetch-depth: 0 - - - name: Configure Git - run: | - git config user.name "$GITHUB_ACTOR" - git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - - - name: Commit and push timestamp updates - run: | - if [[ -f index.yaml ]]; then - git pull - export generated_date=$(date --utc +%FT%T.%9NZ) - sed -i -e "s/^generated:.*/generated: \"$generated_date\"/" index.yaml - git add index.yaml - git commit -sm "Update generated timestamp [ci-skip]" || exit 0 - git push - fi