Open jonnyry opened 7 months ago
Execution contexts:
1. Core repo via GitHub Actions
??? potentially just use git commands as in option 2 ???
Use GitHub Action built in variables
GITHUB_SHA GITHUB_REF_NAME GITHUB_SHA
2. Core repo via local Make
Call git within build process:
GIT_REPO="$(git config --get remote.origin.url | sed 's/.*\/\([^ ]*\/[^.]*\).*/\1/')" GIT_REF="$(git branch --show-current)" GIT_HASH="$(git rev-parse --short HEAD)" DEPLOY_TIME="$(printf '%(%d-%b-%Y %H:%M)T')"
3. Deployment repo via GitHub Actions
4. Deployment repo via local Make
Execution contexts:
1. Core repo via GitHub Actions
??? potentially just use git commands as in option 2 ???
Use GitHub Action built in variables
2. Core repo via local Make
Call git within build process:
3. Deployment repo via GitHub Actions
4. Deployment repo via local Make