Skip to content

Commit

Permalink
use GH_REF
Browse files Browse the repository at this point in the history
  • Loading branch information
ZainRizvi committed Apr 19, 2023
1 parent f18face commit 8035d21
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/atest.yml
Expand Up @@ -18,14 +18,18 @@ jobs:
EVENT_PR_NUMBER: ${{ github.event.pull_request.number }}
THE_REST: "${{ github.event.pull_requests }}"
GH_SHA: ${{ github.sha }}
GH_REF: ${{ github.ref_name }}
steps:
- name: Checkout PyTorch
uses: pytorch/pytorch/.github/actions/checkout-pytorch@main

- name: "print stuff"
run: |
git tag --points-at ${GH_SHA}
- name: "print more"
- name: "print GH_REF"
run: |
echo ${GH_REF}
- name: "print PR_NUMBER"
run: |
echo ${PR_NUMBER}
- name: "print GH_SHA"
Expand All @@ -34,6 +38,6 @@ jobs:
- name: "print EVENT_PR_NUMBER"
run: |
echo ${EVENT_PR_NUMBER}
- name: "print and more"
- name: "print THE_REST"
run: |
echo ${THE_REST}

0 comments on commit 8035d21

Please sign in to comment.