Thanks to visit codestin.com
Credit goes to github.com

Skip to content

hazelcast/github-actions-common-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Actions common scripts

GitHub Actions support workflow commands defined as:

Actions can communicate with the runner machine to set environment variables, output values used by other actions, add debug messages to the output logs, and other tasks.

This repo contains bash wrapper script(s) to easily interface with those functions.

GitHub allows more fine-grained output than just echo - but the syntax is arcane. This wraps access into a simple function call.

Example Usage

on:
  pull_request:
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - run: |
          source /dev/stdin <<< "$(curl --silent https://raw.githubusercontent.com/hazelcast/github-actions-workflow-commands-for-bash/main/logging.functions.sh)"

          echo "Just a regular echo message"
          echodebug "Checking credentials registered with flux capacitor..."
          echonotice "No explicit authentication credentials registered, assuming default"
          echoerr "Unable to extract artifact"

example workflow execution

example job execution

About

Interfacing GitHub Actions workflow commands with bash

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages