Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Repository files navigation

SEAT:CODE - utilities git-actions

Github project to execute utilities into the workflows, this project contains multiples functions to manage labels, timeStamp, branch review as naming convention, etc.

  • Get Time Action
    • Get the time in the specified time zone View code
  • Manage labels
    • useful to obtain lowerCase, upperCase or capitalize View code

Inputs

ParameterRequiredInfo
timeZonefalseTime Zone Default: 0
formatfalseTimestamp format string Default: ''
stringfalseLabel to transform (lower, upper, capitalize): ''

Outputs

ParameterInfo
timeTime in the specified time zone
lowercaseLowercase (XyZzY -> xyzzy)
uppercaseUppercase (XyZzY -> XYZZY)
capitalizedCapitalized (Xyzzy -> Xyzzy)

Examples usage

name: my-workflowon:
push:
branches:
- masterjobs:
check-time:
runs-on: ubuntu-lateststeps:
- name: Checkout Git Sourceuses: actions/checkout@v3
- name: testid: timeuses: ./with:
timeZone: 8format: 'YYYY-MM-DD_HH:mm:ss'
- name: test-outputenv:
TIME: "${{ steps.time.outputs.time }}"run: | echo $TIMEcheck-string-changes:
runs-on: ubuntu-lateststeps:
- name: Checkout Git Sourceuses: actions/checkout@v3
- name: testid: cadenauses: ./with:
string: "A SIMPLE TEST TO lowercase"
- name: test-outputenv:
CADENA: "${{ steps.cadena.outputs.lowercase }}"run: | echo $CADENA 

License

MIT

About

Github actions to manage simple commands

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages