Skip to content

Commit

Permalink
Only one archive update commit
Browse files Browse the repository at this point in the history
  • Loading branch information
npanuhin committed Feb 14, 2024
1 parent a33cc93 commit 5c3d918
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/daily_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }}
fetch-depth: 10

- name: Install Python
uses: actions/setup-python@v5
Expand All @@ -40,9 +41,25 @@ jobs:
CLOUDFLARE_AWS_ACCESS_KEY_ID: '${{ secrets.CLOUDFLARE_AWS_ACCESS_KEY_ID }}'
CLOUDFLARE_AWS_SECRET_ACCESS_KEY: '${{ secrets.CLOUDFLARE_AWS_SECRET_ACCESS_KEY }}'

- name: Check previous commit
id: previous_commit
run: echo "PREVIOUS_COMMIT_AUHOUR=$(git log -1 --pretty=%an)" >> "$GITHUB_OUTPUT"

- name: Commit and push changes
# if: ${{ steps.previous_commit.outputs.PREVIOUS_COMMIT_AUHOUR == "GitHub Actions" }}
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Archive update"
commit_message: Archive update
commit_user_name: GitHub Actions
commit_author: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
commit_options: --amend --no-edit
push_options: --force
skip_fetch: true

# - name: Commit and push changes
# if: ${{ steps.previous_commit.outputs.PREVIOUS_COMMIT_AUHOUR != "GitHub Actions" }}
# uses: stefanzweifel/git-auto-commit-action@v5
# with:
# commit_message: Archive update
# commit_user_name: GitHub Actions
# commit_author: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>

0 comments on commit 5c3d918

Please sign in to comment.