Skip to content

Commit

Permalink
Merge pull request #204 from jbrunton/remove-setup-go-jsonnet
Browse files Browse the repository at this point in the history
remove setup-go from jsonnet templates
  • Loading branch information
jbrunton authored Jun 27, 2021
2 parents 42d23e0 + dd236d6 commit 17d10e9
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 34 deletions.
14 changes: 10 additions & 4 deletions .gflows/examples/default-jsonnet/libs/steps.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@
},

checkout: steps.uses('actions/checkout@v2'),
setup_go: steps.uses('actions/setup-go@v2') {

setup_gflows: steps.uses('jbrunton/setup-gflows@v1') {
with: {
'go-version': '^1.14.4'
token: "${{ secrets.GITHUB_TOKEN }}",
}
}
},

check_workflows: steps.named('validate workflows', 'gflows check') {
env: {
GFLOWS_CONFIG: '.gflows/examples/default-jsonnet/config.yml'
},
},
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,8 @@ local check_workflows_job = {
'runs-on': 'ubuntu-latest',
steps: [
steps.checkout,
steps.setup_go,
steps.uses('jbrunton/setup-gflows@v1') {
with: {
token: "${{ secrets.GITHUB_TOKEN }}",
}
},
steps.named('validate workflows', 'gflows check') {
env: {
GFLOWS_CONFIG: '.gflows/examples/default-jsonnet/config.yml'
},
},
steps.setup_gflows,
steps.check_workflows
]
};

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/ex-default-jsonnet-gflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"runs-on": "ubuntu-latest"
"steps":
- "uses": "actions/checkout@v2"
- "uses": "actions/setup-go@v2"
"with":
"go-version": "^1.14.4"
- "uses": "jbrunton/setup-gflows@v1"
"with":
"token": "${{ secrets.GITHUB_TOKEN }}"
Expand Down
14 changes: 10 additions & 4 deletions static/content/jsonnet/libs/steps.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@
},

checkout: steps.uses('actions/checkout@v2'),
setup_go: steps.uses('actions/setup-go@v2') {

setup_gflows: steps.uses('jbrunton/setup-gflows@v1') {
with: {
'go-version': '^1.14.4'
token: "${{ secrets.GITHUB_TOKEN }}",
}
}
},

check_workflows: steps.named('validate workflows', 'gflows check') {
env: {
GFLOWS_CONFIG: '$CONFIG_PATH'
},
},
}
13 changes: 2 additions & 11 deletions static/content/jsonnet/workflows/gflows.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,8 @@ local check_workflows_job = {
'runs-on': 'ubuntu-latest',
steps: [
steps.checkout,
steps.setup_go,
steps.uses('jbrunton/setup-gflows@v1') {
with: {
token: "${{ secrets.GITHUB_TOKEN }}",
}
},
steps.named('validate workflows', 'gflows check') {
env: {
GFLOWS_CONFIG: '$CONFIG_PATH'
},
},
steps.setup_gflows,
steps.check_workflows
]
};

Expand Down
Loading

0 comments on commit 17d10e9

Please sign in to comment.