Skip to content

Commit

Permalink
Merge pull request #1 from RoryQ/dev
Browse files Browse the repository at this point in the history
implement action
  • Loading branch information
RoryQ authored Apr 22, 2024
2 parents 98c867f + 8fdd98b commit 4d19258
Show file tree
Hide file tree
Showing 15 changed files with 729 additions and 899 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/test-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
go-version: stable
- run: go run main.go
env:
INPUT_PATHS: |
- Dummy Test Item
- Dummy Test Item 2
INPUT_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INPUT_REQUIRED_WORKFLOW_PATTERNS: |
- tests
INPUT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: stable
- run: go test ./...
- run: |
sleep 60
go test ./...
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
### Go template
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

# Go workspace file
go.work

10 changes: 8 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ description: Define required checks inside your repository.
author: "Rory Quinn"

inputs:
github_token:
description: Required.
token:
description: GitHub token
required_workflow_patterns:
description: List of patterns to check.
target_sha:
description: Target SHA.
initial_delay_seconds:
description: Initial delay before polling.
poll_frequency_seconds:
description: Polling frequency.
version:
description: Release version of action to run.
runs:
Expand Down
Loading

0 comments on commit 4d19258

Please sign in to comment.