diff --git a/.github/actions/commit-push/action.yaml b/.github/actions/commit-push/action.yaml deleted file mode 100644 index 0630a3c491..0000000000 --- a/.github/actions/commit-push/action.yaml +++ /dev/null @@ -1,35 +0,0 @@ -# SPDX-FileCopyrightText: © 2023 Kevin Lu -# SPDX-Licence-Identifier: AGPL-3.0-or-later -name: Commit and push -description: Commit all tracked and untracked files to Git and push to the remote repository. -inputs: - message: - description: Git commit message. - type: string - required: true - working-directory: - description: Change to this repository directory. - type: string - default: . -outputs: - status: - description: The number of changed paths reported by Git. If 0, no commit or push was attempted. - value: ${{ steps.commit-push.outputs.status }} -runs: - using: composite - steps: - - id: commit-push - shell: bash - working-directory: ${{ inputs.working-directory }} - run: | - git add . - git status - STATUS_LINES=$(git status --porcelain | wc -l) - echo "status=$STATUS_LINES" >> $GITHUB_OUTPUT - if [[ $STATUS_LINES != 0 ]]; then - git config user.name GitHub Actions - git config user.email noreply@github.com - git commit -m "${{ inputs.message }}" - git pull --rebase origin master - git push - fi diff --git a/.github/workflows/merge.yaml b/.github/workflows/merge.yaml index cfffaa4537..314946610a 100644 --- a/.github/workflows/merge.yaml +++ b/.github/workflows/merge.yaml @@ -82,7 +82,7 @@ jobs: ../../../yaml-yugipedia/wikitext/Skill_Cards \ --aggregate ../../../aggregate/skill.json - id: commit - uses: ./yaml-yugi/.github/actions/commit-push + uses: DawnbrandBots/.github/actions/commit-push@main with: message: "Transform: ${{ github.run_number }} (${{ github.run_id }})" working-directory: yaml-yugi