From 7fe5b7230956c97df2233cc030e320a84dbad3d1 Mon Sep 17 00:00:00 2001 From: Marc Lichtman Date: Tue, 3 Sep 2024 14:44:04 -0400 Subject: [PATCH 1/2] try echoing the refs --- .github/workflows/pr.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 71480a36..374ec91c 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -11,6 +11,9 @@ jobs: steps: - uses: actions/checkout@v3 + - name: TEMPORARY + run: echo ${{ github.run_number }} && echo ${{ github.ref_name }} + - name: Set Azurite Default Key run: | echo "AZURITE_ACCOUNT_KEY=${{ secrets.AZURITE_ACCOUNT_KEY }}" >> $GITHUB_ENV @@ -23,6 +26,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: python-version: "3.10" # stac-api-validator requires >= 3.10 From 40f3ae81dd523601f1365eb4dd06a72b6be2e6c8 Mon Sep 17 00:00:00 2001 From: Marc Lichtman Date: Tue, 3 Sep 2024 14:48:12 -0400 Subject: [PATCH 2/2] echo most recent tag --- .github/workflows/pr.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 2909e702..7384ad12 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -11,8 +11,12 @@ jobs: steps: - uses: actions/checkout@v3 + - name: 'Get Previous tag' + id: most-recent-tag + uses: "WyriHaximus/github-action-get-previous-tag@v1" + - name: TEMPORARY - run: echo ${{ github.run_number }} && echo ${{ github.ref_name }} + run: echo ${{ github.run_number }} && echo ${{ github.ref_name }} && echo ${{ steps.most-recent-tag.outputs.tag }} - name: Set Azurite Default Key run: echo "AZURITE_ACCOUNT_KEY=$(curl https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azurite | grep "Account key:" | cut -b 24-111)" >> $GITHUB_ENV