diff --git a/.github/scripts/files/examples.yml b/.github/scripts/files/examples.yml index 1829a315..738698c0 100644 --- a/.github/scripts/files/examples.yml +++ b/.github/scripts/files/examples.yml @@ -58,7 +58,7 @@ jobs: if: ${{ success() || failure() }} run: | set +e - rm -rf /metrics_renders/metrics.markdown*.{md,pdf} + sudo rm -rf /metrics_renders/github-metrics.* sudo mv /metrics_renders/* ./ git config user.name github-actions[bot] git config user.email 41898282+github-actions[bot]@users.noreply.github.com @@ -68,15 +68,6 @@ jobs: git commit -m "chore: update examples" git push --force - set +e - git config user.name github-actions[bot] - git config user.email 41898282+github-actions[bot]@users.noreply.github.com - git pull - sudo cp /metrics_renders/* ./ - git add --all - git commit -m "chore: update examples" - git push --force - # ====================================================================================== # Special job used to render lowlighter/metrics repository assets # ====================================================================================== diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index c375d9ef..e393458b 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -1327,7 +1327,7 @@ jobs: if: ${{ success() || failure() }} run: | set +e - rm -rf /metrics_renders/metrics.markdown*.{md,pdf} + sudo rm -rf /metrics_renders/github-metrics.* sudo mv /metrics_renders/* ./ git config user.name github-actions[bot] git config user.email 41898282+github-actions[bot]@users.noreply.github.com