Merge branch 'ccxt:master' into master #1
This file contains hidden or 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: Java | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| if: ${{ !startsWith(github.event.head_commit.message, '[Automated changes]') && !contains(github.event.head_commit.message, 'Merge branch ''master'' of https://github.com/ccxt/ccxt') }} | |
| steps: | |
| - name: Print vars | |
| run: | | |
| echo "GitHub Actor: $GITHUB_ACTOR" | |
| echo "Repository: $GITHUB_REPOSITORY" | |
| echo "Event Name: $GITHUB_EVENT_NAME" | |
| echo "Workflow Name: $GITHUB_WORKFLOW" | |
| echo "Run ID: $GITHUB_RUN_ID" | |
| echo "Run Number: $GITHUB_RUN_NUMBER" | |
| echo "Job Name: $GITHUB_JOB" | |
| echo "Ref: $GITHUB_REF" | |
| echo "SHA: $GITHUB_SHA" | |
| echo "Head Commit: ${{ github.event.head_commit.message }}" | |
| echo "Branch Name: ${GITHUB_REF##*/}" # Extract the branch name from GITHUB_REF | |
| - uses: actions/checkout@v4 | |
| if: github.ref == 'refs/heads/master' | |
| with: | |
| token: ${{ secrets.GH_TOKEN }} | |
| fetch-depth: 2 | |
| - uses: actions/checkout@v4 | |
| if: github.ref != 'refs/heads/master' | |
| with: | |
| fetch-depth: 2 | |
| - name: Skip Automated Push Commits | |
| id: check_commit | |
| run: | | |
| if [[ "${{ github.event.head_commit.message }}" == *"[Automated changes]"* ]]; then | |
| echo "This commit was made by the action. Skipping." | |
| exit 0 | |
| fi |