Skip to content
Open

. #2

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Action
on:
pull_request:
types: [opened, synchronize, reopened, labeled]
branches:
- master
push:
Expand All @@ -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
Expand All @@ -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