Skip to content

Commit

Permalink
fix: always update metadata file (#41)
Browse files Browse the repository at this point in the history
The metadata file will now be updated if changes are detected, even if the script fails. This should help keep metadata files accurate when there are failures, preventing new problems from being created by an out-of-date metadata file.
  • Loading branch information
parkerbxyz authored Jan 22, 2024
1 parent c6468d7 commit 5de9c11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ runs:
GURU_COLLECTION_ID: ${{ inputs.guru_collection_id }}
COLLECTION_DIRECTORY_PATH: ${{ inputs.collection_directory_path }}
- name: Pull changes from sync so we can update the metadata file
if: ${{ !env.DRY_RUN }}
if: ${{ !env.DRY_RUN && !cancelled() }}
shell: bash
run: git pull
- uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
if: ${{ !env.DRY_RUN }}
if: ${{ !env.DRY_RUN && !cancelled() }}
with:
file_pattern: "${{ inputs.collection_directory_path }}/**/resources/*"
commit_message: "Update resources"
commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
- uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
if: ${{ !env.DRY_RUN }}
if: ${{ !env.DRY_RUN && !cancelled() }}
with:
file_pattern: "${{ inputs.collection_directory_path }}/GitHubPublisher.json"
commit_message: "Update GitHubPublisher.json"
Expand Down

0 comments on commit 5de9c11

Please sign in to comment.