From efeca9c20b23bd6f4b106d359b79d37aec832075 Mon Sep 17 00:00:00 2001 From: Philip Durbin Date: Wed, 22 May 2024 22:00:44 -0400 Subject: [PATCH] move tmate up to be earlier --- .github/workflows/maven-snapshot.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven-snapshot.yml b/.github/workflows/maven-snapshot.yml index 6d02edc..9009a50 100644 --- a/.github/workflows/maven-snapshot.yml +++ b/.github/workflows/maven-snapshot.yml @@ -35,6 +35,9 @@ jobs: restore-keys: ${{ runner.os }}-m2 - name: Build, test, verify and publish snapshot run: mvn -B verify -Djdk.version=${{ matrix.java }} + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} - name: Publish snapshot if: ${{ matrix.java == '17' }} run: mvn -e -X deploy -DskipAnalysis -DskipUT -DskipIT -Djdk.version=${{ matrix.java }} @@ -42,6 +45,3 @@ jobs: MAVEN_USERNAME: ${{ secrets.DATAVERSEBOT_SONATYPE_USERNAME }} MAVEN_PASSWORD: ${{ secrets.DATAVERSEBOT_SONATYPE_TOKEN }} # Enable tmate debugging of manually-triggered workflows if the input option was provided - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} \ No newline at end of file