Skip to content

Commit

Permalink
Rewind, how that the secret is fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlovett committed Jul 31, 2024
1 parent 62db75b commit ba9e8cf
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/push-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit ba9e8cf

Please sign in to comment.