Push a new tag to datahub repo #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push a new tag to datahub repo | |
on: | |
workflow_dispatch: | |
jobs: | |
push-tag: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up git | |
run: | | |
echo https://x-access-token:${GITHUB_TOKEN}@github.com > ~/.git-credentials | |
git config credential.helper store | |
- name: Clone the datahub repo | |
run: | | |
git clone https://github.com/berkeley-dsep-infra/datahub.git | |
- 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 origin ${tag} |