You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently have a lot of complex scripts hanging around that we embed into github actions, for example:
- name: Get Version
id: get-version
run: |
PACKAGE_VERSION=$(node -p -e "require('./package.json').version")
echo "::set-output name=version::${PACKAGE_VERSION}"
- name: Convert branch name to tag
# Get the github ref as a slugified docker tag
id: branch
run: echo "::set-output name=branch_tag::$(echo ${GITHUB_REF#refs/heads/} | iconv -c -t ascii//TRANSLIT | sed -E 's/[~^]+//g' | sed -E 's/[^a-zA-Z0-9]+/-/g' | sed -E 's/^-+|-+$//g' | tr A-Z a-z)"
- name: Check Version
if: # If it's a PR into main...
run: |
something complicated
It would be good to begin compiling a set of github actions to streamline this process in repositories using conventional commits (and octue in general) so we could define workflows that look like:
- name: Get Version
uses: octue/actions-get-version@v1 # or gha-get-version or something consistent
from: package.json
- name: Check Version
if: # If it's a PR into main, otherwise skip check
uses: octue/actions-check-version@v1
The text was updated successfully, but these errors were encountered:
Feature request
Use Case
We currently have a lot of complex scripts hanging around that we embed into github actions, for example:
It would be good to begin compiling a set of github actions to streamline this process in repositories using conventional commits (and octue in general) so we could define workflows that look like:
The text was updated successfully, but these errors were encountered: