From ba9e8cf5578c22f306b1f822dcc7486ee449d444 Mon Sep 17 00:00:00 2001 From: Ryan Lovett Date: Wed, 31 Jul 2024 15:50:36 -0700 Subject: [PATCH] Rewind, how that the secret is fixed. --- .github/workflows/push-tag.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/push-tag.yml b/.github/workflows/push-tag.yml index 71b766a..86b1faf 100644 --- a/.github/workflows/push-tag.yml +++ b/.github/workflows/push-tag.yml @@ -7,17 +7,21 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up git - run: | - git config --global user.name "GitHub Actions" - git config --global user.email "actions@github.com" - - - name: Clone the datahub repo - run: git clone https://github.com/berkeley-dsep-infra/datahub.git + - name: Check out the datahub repo + uses: actions/checkout@v4 + with: + repository: berkeley-dsep-infra/datahub + ref: staging + token: ${{ secrets.PUSH_TAG_TOKEN }} + path: datahub - name: Push tag to datahub repo run: | tag=$(date '+%Y%m%d-%H%M%S') + cd datahub/ + git config user.name "GitHub Actions" + git config user.email "actions@github.com" + git tag ${tag} - git push https://x-access-token:${{ secrets.PUSH_TAG_TOKEN }}@github.com/berkeley-dsep-infra/datahub.git ${tag} + git push origin ${tag}