diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index eaa6500..bde14df 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -1,6 +1,7 @@ name: Action on: pull_request: + types: [opened, synchronize, reopened, labeled] branches: - master push: @@ -12,17 +13,12 @@ on: jobs: build: runs-on: ubuntu-latest - name: "Run sync of ${{ matrix.network }} testnet" steps: - name: Show GitHub context env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" shell: bash - - name: Log stuff - run: | - echo "Network: ${{ matrix.network }}" - echo "Checkpoint sync URL: ${{ matrix.checkpoint-sync-url }}" - name: Get Job ID id: get_job_id @@ -34,14 +30,7 @@ jobs: - name: test run: | - echo "ref: &{{github.ref}}" - echo "github: &{{ github }}" + echo "ref: ${{github.ref}}" + echo "github: ${{ github }}" # if: github.ref == 'refs/heads/main' # && (github.event_name == 'push' || (github.event_name == 'pull_request_target' && github.event.action == 'labeled' && github.event.label.name == 'cortex')) - - - name: Use Job ID - run: | - JOB_ID=${{ steps.get_job_id.outputs.JOB_ID }} - JOB_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/jobs/$JOB_ID" - echo "Job URL: $JOB_URL" - # Use $JOB_URL in your notification