Generate Sourcemint snapshot.json
reports for Github Workflow Jobs.
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:/
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": {
...
}
}
Copyright © 2020 Christoph Dorn. Licensed under the OSL License.