Sync Dependencies - Auto Commit #83
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Post Push Checks and Commits | |
on: | |
push: | |
branches: [ dev ] | |
jobs: | |
check_commit: | |
name: Check Last Commit 📝 | |
runs-on: ubuntu-latest | |
outputs: | |
commit_message: ${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref || github.ref_name }} | |
lfs: true | |
ssh-key: ${{ secrets.DEPLOY_KEY }} | |
- name: Get Head Commit Message | |
id: get_head_commit_message | |
run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT" | |
pre_job: | |
name: Pre Job 🚀 | |
runs-on: ubuntu-latest | |
if: ${{ needs.check_commit.outputs.commit_message != 'Sync Dependencies - Auto Commit' }} | |
needs: [ check_commit ] | |
steps: | |
- run: echo "Proceeding to checks..." | |
sync_dependencies: | |
name: Sync Dependencies 🔄 | |
uses: ChainSafe/web3.unity/.github/workflows/sync_dependencies.yaml@main | |
needs: [ pre_job ] | |
secrets: inherit | |
duplicate_samples: | |
name: Duplicate Samples 🪞 | |
uses: ChainSafe/web3.unity/.github/workflows/duplicate_samples.yaml@main | |
needs: [ sync_dependencies ] | |
secrets: inherit | |
unity_tests: | |
name: Unity Tests 🧪 | |
uses: ChainSafe/web3.unity/.github/workflows/unity_tests.yml@main | |
needs: [ sync_dependencies ] | |
secrets: inherit |