Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

sourcemint/sm.act.github.actions

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sm.act.github.actions

Generate Sourcemint snapshot.json reports for Github Workflow Jobs.

Environment Variables

Job step configuration:

- name: "[sm.act] Set env"
  uses: sourcemint/sm.act.github.actions/.github/actions/sm-act-set-env@master

- name: "[sm.act] Show env"
  uses: sourcemint/sm.act.github.actions/.github/actions/sm-act-show-env@master

Sets the following environment variables:

SM_ACT_REPO_GUID=3-02453f6-7-136
SM_ACT_REPO_URI=github.com/sourcemint/sm.act.github.actions
SM_ACT_GIT_REMOTE=git@github.com:sourcemint/sm.act.github.actions.git
SM_ACT_GIT_REF=refs/heads/master
SM_ACT_GIT_SHA=691bf08b03752b42174536d07eceeb7c3d1ed4e3
SM_ACT_GIT_SHA7=691bf08
SM_ACT_RUN_ID=github-actions-165761974
SM_ACT_NAME=Snapshot
SM_ACT_ACTOR_URI=github.com/cadorn
SM_ACT_TRIGGER_EVENT=push
SM_ACT_COMPONENT_ID=/
SM_ACT_GIT_BRANCH=master
SM_ACT_GIT_COMMIT_AUTHOR=Christoph Dorn <christoph@christophdorn.com>
SM_ACT_GIT_COMMIT_DATE=Sat Jul 11 10:08:07 2020 -0700
SM_ACT_GIT_COMMIT_MESSAGE=fix
SM_ACT_ID=3-02453f6-7-136:github.com/sourcemint/sm.act.github.actions:/:Snapshot
SM_ACT_FSID=3-02453f6-7-136/github.com~sourcemint~sm.act.github.actions/~/Snapshot
SM_ACT_SNAPSHOT_ID=20-07-11:3-02453f6-7-136:github.com/sourcemint/sm.act.github.actions:/:Snapshot:691bf08:master:1708-55:github.com/cadorn:github-actions-165761974
SM_ACT_SNAPSHOT_ID7=3e33e8a
SM_ACT_SNAPSHOT_HID=20-07-11:78ae465:e9a0cb3:42099b4:b08ae37:691bf08:4f26aea:1708-55:57e542e:b2a8365
SM_ACT_SNAPSHOT_FSID=20-07-11/3-02453f6-7-136/github.com~sourcemint~sm.act.github.actions/~/Snapshot/691bf08/master/1708-55/github.com~cadorn/github-actions-165761974
SM_ACT_SNAPSHOT_ASPECT=Snapshot
SM_ACT_SNAPSHOT_ASPECT_OF=3-02453f6-7-136:github.com/sourcemint/sm.act.github.actions:/

Snapshot Report

Job step configuration:

- name: "[sm.act] Write snapshot report"
  uses: sourcemint/sm.act.github.actions/.github/actions/sm-act-write-snapshot@master

Reports are written to a _/gi0.Sourcemint.org-sm.act/snapshots branch and stored at:

  • ._/gi0.Sourcemint.org~sm.act/snapshots/<SM_ACT_SNAPSHOT_FSID>.json
    • The actual JSON report shown below.
  • Relative path mappings to <SM_ACT_SNAPSHOT_FSID>.json:
    • ._/gi0.Sourcemint.org~sm.act/snapshots-latest/<SM_ACT_FSID>
    • ._/gi0.Sourcemint.org~sm.act/snapshots-id/<SM_ACT_SNAPSHOT_ID>
    • ._/gi0.Sourcemint.org~sm.act/snapshots-hid/<SM_ACT_SNAPSHOT_HID>
    • ._/gi0.Sourcemint.org~sm.act/snapshots-id7/<SM_ACT_SNAPSHOT_ID7>
{
    "aspect": "Snapshot",
    "aspectOf": "3-02453f6-7-136:github.com/sourcemint/sm.act.github.actions:/",
    "id": "20-07-11:3-02453f6-7-136:github.com/sourcemint/sm.act.github.actions:/:Snapshot:691bf08:master:1708-55:github.com/cadorn:github-actions-165761974",
    "id7": "3e33e8a",
    "hid": "20-07-11:78ae465:e9a0cb3:42099b4:b08ae37:691bf08:4f26aea:1708-55:57e542e:b2a8365",
    "fsid": "20-07-11/3-02453f6-7-136/github.com~sourcemint~sm.act.github.actions/~/Snapshot/691bf08/master/1708-55/github.com~cadorn/github-actions-165761974",
    "logs": {
        "url": "https://api.github.com/repos/sourcemint/sm.act.github.actions/actions/runs/165761974/logs"
    },
    "artifacts": {
        "url": "https://api.github.com/repos/sourcemint/sm.act.github.actions/actions/runs/165761974/artifacts"
    },
    "meta": {
        "REPO_GUID": "3-02453f6-7-136",
        "REPO_URI": "github.com/sourcemint/sm.act.github.actions",
        "GIT_REMOTE": "git@github.com:sourcemint/sm.act.github.actions.git",
        "GIT_REF": "refs/heads/master",
        "GIT_SHA": "691bf08b03752b42174536d07eceeb7c3d1ed4e3",
        "GIT_SHA7": "691bf08",
        "RUN_ID": "github-actions-165761974",
        "NAME": "Snapshot",
        "ACTOR_URI": "github.com/cadorn",
        "TRIGGER_EVENT": "push",
        "COMPONENT_ID": "/",
        "GIT_BRANCH": "master",
        "GIT_COMMIT_AUTHOR": "Christoph Dorn <christoph@christophdorn.com>",
        "GIT_COMMIT_DATE": "Sat Jul 11 10:08:07 2020 -0700",
        "GIT_COMMIT_MESSAGE": "fix",
        "ID": "3-02453f6-7-136:github.com/sourcemint/sm.act.github.actions:/:Snapshot",
        "FSID": "3-02453f6-7-136/github.com~sourcemint~sm.act.github.actions/~/Snapshot",
        "SNAPSHOT_ID": "20-07-11:3-02453f6-7-136:github.com/sourcemint/sm.act.github.actions:/:Snapshot:691bf08:master:1708-55:github.com/cadorn:github-actions-165761974",
        "SNAPSHOT_ID7": "3e33e8a",
        "SNAPSHOT_HID": "20-07-11:78ae465:e9a0cb3:42099b4:b08ae37:691bf08:4f26aea:1708-55:57e542e:b2a8365",
        "SNAPSHOT_FSID": "20-07-11/3-02453f6-7-136/github.com~sourcemint~sm.act.github.actions/~/Snapshot/691bf08/master/1708-55/github.com~cadorn/github-actions-165761974",
        "SNAPSHOT_ASPECT": "Snapshot",
        "SNAPSHOT_ASPECT_OF": "3-02453f6-7-136:github.com/sourcemint/sm.act.github.actions:/"
    },
    "env": {
        ...
    }
}

Tests

  • [sm] 01 - Test env
  • [sm] 02 - Write Snapshot
  • [sm] 03 - Activate Snapshot

License

Copyright © 2020 Christoph Dorn. Licensed under the OSL License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.