Skip to content

Commit

Permalink
Move contribs to a unique workflow to automatically add new ones in the
Browse files Browse the repository at this point in the history
future.

Signed-off-by: Antonio Navarro Perez <[email protected]>
  • Loading branch information
ajnavarro committed May 7, 2024
1 parent 07f4f5f commit 30d587c
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 80 deletions.
20 changes: 0 additions & 20 deletions .github/gnokeykc.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/contribs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: contribs

on:
push:
branches:
- master
workflow_dispatch:
pull_request:
paths:
- "contribs/**"
- ".github/**"

jobs:
setup:
runs-on: ubuntu-latest
outputs:
programs: ${{ steps.set-matrix.outputs.programs }}
steps:
- uses: actions/checkout@v2
- id: set-matrix
run: echo "::set-output name=programs::$(ls -d contribs/*/ | cut -d/ -f2 | jq -R -s -c 'split("\n")[:-1]')"
main:
needs: setup
strategy:
fail-fast: false
matrix:
program: ${{ fromJson(needs.setup.outputs.programs) }}
name: Run Main
uses: ./.github/workflows/main_template.yml
with:
modulepath: contribs/${{ matrix.program }}
secrets:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
20 changes: 0 additions & 20 deletions .github/workflows/gnodev.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/gnofaucet.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/gnomod.yml

This file was deleted.

0 comments on commit 30d587c

Please sign in to comment.