fix: revert back to earlier pipeline config

This commit is contained in:
silver 2024-09-14 19:57:38 +01:00
parent bfed45249e
commit dfc5075ce6
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -14,53 +14,17 @@ on:
workflow_dispatch:
jobs:
changes:
runs-on: nix
# Required permissions
permissions:
pull-requests: read
# Set job outputs to values from filter step
outputs:
scripts: ${{ steps.filter.outputs.changes }}
steps:
# make sure the code is available
- uses: https://code.forgejo.org/actions/checkout@v4
- uses: https://forgejo.skynet.ie/Skynet/actions/get_lfs@v3
with:
repository: ${{ gitea.repository }}
ref_name: ${{ gitea.ref_name }}
# For pull requests it's not necessary to checkout the code
- uses: https://github.com/dorny/paths-filter@v3
id: filter
with:
filters: |
minutes:
- 'Minutes/**/*'
events:
- 'Events/**/*'
handovers:
- 'Committee/**/Handovers/*'
budgets:
- 'Committee/**/Budget/*'
# rust code must be formatted for standardisation
pdfs:
# build it using teh base nixos system, helps with caching
runs-on: nix
needs: changes
strategy:
matrix:
# script: [ handovers, minutes, budget, events ]
script: ${{ fromJSON(needs.changes.outputs.scripts) }}
script: [ handovers, minutes, budget, events ]
permissions:
# needs this to create tags and releases
contents: write
steps:
- env:
OUTPUT1: ${{needs.changes.outputs.scripts}}
OUTPUT2: ${{ fromJSON(needs.changes.outputs.scripts) }}
run: echo "$OUTPUT1 $OUTPUT2"
# the if statements are to only run if there are changes in the sub dir
# get the repo first
- uses: https://code.forgejo.org/actions/checkout@v4
- uses: https://forgejo.skynet.ie/Skynet/actions/get_lfs@v3