Help language development. Donate to The Perl Foundation

GitHub::Actions zef:jjmerelo last updated on 2022-01-04
# GitHub::Actions for Raku [![Test in a Raku container - template](](

Use the GitHub actions console API easily from Raku. Essentially, a port to
Raku of the [equivalent Perl module]( It's mainly intended to be run inside the [Raku
container for GitHub actions](, but can of
course be used independently.

## Installing

Install it the usual way, using `zef`:

    zef install GitHub::Actions

Also use it from the companion Docker image,

    docker pull --rm -it --entrypoint=/bin/sh

## Running

This is a version derived from the base [Raku image for
GHA]( with this module and its dependencies
installed. You can use it directly in your GitHub actions, for instance like

      - name: Test output
        id: output_test
        shell: raku {0}
          use GitHub::Actions;
          set-output( 'FOO', 'BAR');

Check [the Pod6 here](lib/GitHub/Actions.rakumod) for methods available.

## Synopsis


use GitHub::Actions:

say %github; # Contains all GITHUB_xyz variables

set-output('FOO'); # Empty value
set-env("FOO", "bar");

error-on-file('FOO', '', 1,1 );

warning-on-file('FOO', 'foo.raku', 1,1 );

# sets group
start-group( "foo" );

## See also

Created from the
[Raku distribution template](

## License

(c) JJ Merelo, [email protected], 2022
Licensed, under the Artistic 2.0 License (the same as Raku itself).