-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (41 loc) · 1.22 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
name: Main
on:
push:
branches:
- main
jobs:
Build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Lint
uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.github_token }}
golangci_lint_flags: "--config=.golangci.yml"
- name: Setup env
run: |
echo "GOPATH=$(dirname $GITHUB_WORKSPACE)" >> $GITHUB_ENV
echo "$(dirname $GITHUB_WORKSPACE)/bin" >> $GITHUB_PATH
mkdir -p "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel"
ln -sf "$GITHUB_WORKSPACE/" "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/go-netbox"
shell: bash
- name: Generate netbox client
run: |
sudo apt-get -q install python3-demjson
cd "$GITHUB_WORKSPACE/utils"
./netbox_generate_client
shell: bash
- name: Commit library
uses: EndBug/[email protected]
with:
add: 'netbox swagger'
author_name: smutel
default_author: github_actor
message: 'ci: Autogeneration of go-netbox library'