Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automatically fetching the latest checksum #25

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Conversation

yibeichan
Copy link
Collaborator

as mentioned here ReproNim/reproschema-demo#1
old checksum can't display some UIs properly (e.g., "inputType": "textarea"), so I set up automatic fetching of the latest checksum in GA. it worked well on reproschema-demo

# Fetch the latest commit hash
- name: Get latest commit hash from reproschema-ui
run: |
LATEST_HASH=$(curl -s https://api.github.com/repos/ReproNim/reproschema-ui/commits/master | jq -r '.sha')
echo "CHECKSUM=$LATEST_HASH" >> $GITHUB_ENV

also, I want to rename the default branch from master to main because main is the default one for all new GitHub repo, so in our demo document, we don't have to add another line to tell them to change master to main when cloning our repo. If no one disagrees, I'll change it

@satra satra merged commit ba1c361 into master Aug 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants