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

Publish snapshot package on each commit to main branch #136

Merged
merged 34 commits into from
Aug 28, 2022

Conversation

matiasdahl
Copy link
Member

@matiasdahl matiasdahl commented Aug 5, 2022

Notes on git commit sha:s

As shown below, there are various variables with "the commit sha:s" when running a github action task.

# get-git-commit-shas:

# this will be the merge commit (for PRs) or commit (for commits to a branch)
git --no-pager log --oneline -n 10

# use git
git show --no-patch --format=%H
git show HEAD --no-patch --format=%H
git show <branch name> --no-patch --format=%H


echo "github.sha                         : ${{ github.sha }}"
echo "GITHUB_SHA                         : ${GITHUB_SHA}"

# The below is only defined for GHAs triggered by PR:s
echo "github.event.pull_request.head.sha : ${{ github.event.pull_request.head.sha }}"

@matiasdahl matiasdahl changed the title Refactor ci github actions to use reusable workflow Publish snapshot package on each commit to main branch Aug 21, 2022
@matiasdahl matiasdahl merged commit a819184 into main Aug 28, 2022
@matiasdahl matiasdahl deleted the gha-ci-refactor branch August 28, 2022 09:12
@matiasdahl matiasdahl linked an issue Aug 28, 2022 that may be closed by this pull request
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.

Create a pip-package with pynb-dag-runner core
1 participant