Skip to content

Commit

Permalink
Merge pull request #4 from currents-dev:feature/get-gha-info
Browse files Browse the repository at this point in the history
feat(log): added github actions properties from event file
  • Loading branch information
agoldis authored Jan 9, 2024
2 parents 2a5936d + 453c149 commit c14f140
Show file tree
Hide file tree
Showing 8 changed files with 527 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/event.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"pull_request": {
"head": {
"ref": "test-ref",
"sha": "test-sha"
},
"base": {
"ref": "test-ref",
"sha": "test-sha"
},
"issue_url": "test-issue",
"html_url": "test-html",
"title": "test-title"
},
"sender": {
"avatar_url": "test-avatar",
"html_url": "test-html"
}
}
14 changes: 13 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,16 @@ jobs:
- run: npm ci
- run: npm test
# - if: github.ref == 'refs/heads/master'
# run: npm run semantic-release
# run: npm run semantic-release
gha:
runs-on: ubuntu-latest
steps:
- name: Run gha e2e
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: |
cp .github/workflows/event.json /home/runner/work/_temp/_github_workflow/event.json
npm run gha-e2e
Loading

0 comments on commit c14f140

Please sign in to comment.