Skip to content

Commit

Permalink
dependency tracking WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
rfratto committed Nov 23, 2020
1 parent e511d51 commit 6588b78
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/dependency-tracker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM golang:1.15

WORKDIR /dependency-tracker
COPY . .
RUN go install .
ENTRYPOINT ["dependency-tracker"]
9 changes: 9 additions & 0 deletions .github/actions/dependency-tracker/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Check Dependencies
description: Check dependencies of a project and create issues if that project has out of date dependencies.
inputs:
repository:
description: "repository to check"
required: true
runs:
using: 'docker'
image: 'Dockerfile'
3 changes: 3 additions & 0 deletions .github/actions/dependency-tracker/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/grafana/agent/.github/actions/dependency-tracker

go 1.15
7 changes: 7 additions & 0 deletions .github/actions/dependency-tracker/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "fmt"

func main() {
fmt.Println("Hello, world!")
}
16 changes: 16 additions & 0 deletions .github/workflows/check-deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Check Dependencies
on:
workflow_dispatch: {}
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Invoke action
uses: ./.github/actions/dependency-tracker
with:
repository: .

0 comments on commit 6588b78

Please sign in to comment.