Skip to content

Instantly share code, notes, and snippets.

@jeffreyaven
Created January 17, 2023 23:05
Show Gist options
  • Save jeffreyaven/94bcf43ba5deaf088a271d54d2a9c33e to your computer and use it in GitHub Desktop.
Save jeffreyaven/94bcf43ba5deaf088a271d54d2a9c33e to your computer and use it in GitHub Desktop.
name: Build and Deploy Registry Providers
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
workflow_dispatch:
jobs:
build-and-deploy:
name: build-and-deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: "[SETUP] checkout repo"
with:
fetch-depth: 0
- name: "[SETUP] setup job"
run: |
echo "REG_COMMIT_DATETIME=$(date -d @`git show -s --format=%ct` +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
echo "REG_COMMIT_YEAR=$(date -d @`git show -s --format=%ct` +'%y')" >> $GITHUB_ENV
echo "REG_COMMIT_MONTH=$(date -d @`git show -s --format=%ct` +'%m')" >> $GITHUB_ENV
cd scripts/setup-js; npm i
node setup-job.js
- name: "[SETUP] get version"
run: |
node scripts/setup-js/get-version.js
- name: do something
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment