Skip to content

Commit

Permalink
give 'er a try
Browse files Browse the repository at this point in the history
  • Loading branch information
daleyjem committed Mar 30, 2024
1 parent 77f5a39 commit e3e781f
Show file tree
Hide file tree
Showing 8 changed files with 1,198 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Verifications

on:
push:
branches:
- main

workflow_dispatch:

jobs:
manual-check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Run our action
id: my_action
uses: ../action.yml
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
job_name: "manual-check"

- name: Output our action
run: echo ${{ steps.my_action.outputs.job_id }} - ${{ steps.my_action.outputs.html_url }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
31 changes: 31 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Fetch GitHub job_id"
description: "GitHub Action to fetch the current workflow run's job_id"
inputs:
github_token:
description: "GITHUB_TOKEN to use GitHub API v3"
required: true
job_name:
description: "job_name of tartget workflow jobs"
required: true
repository:
description: "target GitHub repository"
required: false
run_id:
description: "run_id of target workflow run"
required: false
per_page:
description: "Results per page (max 100) of target workflow run"
required: false
outputs:
job_id:
description: "job_id of target workflow jobs"
html_url:
description: "html_url of target workflow jobs"

branding:
icon: "link"
color: "blue"

runs:
using: 'node20'
main: 'dist/index.js'
70 changes: 70 additions & 0 deletions dist/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit e3e781f

Please sign in to comment.