Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Latency authored Jan 29, 2024
1 parent 1dfff71 commit e6763eb
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,34 @@ on:


jobs:
list-files:
runs-on: ubuntu-latest
outputs:
paths: ${{ steps.list-files.outputs.paths }}
steps:
- name: List Files
id: list-files
uses: mirko-felice/list-files-action@v3.0.5
with:
repo: ${{ github.repository }}
ref: ${{ github.ref }}
path: "${{ github.workspace }}/bin/${{ matrix.configuration }}"
ext: ".nupkg"

build:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler otherwise, read permission is required at least
pull-requests: write

needs: list-files
strategy:
matrix:
configuration: [Release]
paths: ${{ fromJson(needs.list-files.outputs.paths)}

runs-on: ubuntu-latest
outputs:
paths: ${{ steps.list-files.outputs.paths }}

steps:
- uses: actions/checkout@v4
Expand All @@ -51,7 +65,7 @@ jobs:

- name: Output results
run: |
echo "${{ fromJson(needs.list-files.outputs.paths) }}"
echo "${{ matrix.paths }}"
- name: Delete current release (if exists)
uses: andreaswilli/delete-release-assets-action@v3.0.0
Expand Down

0 comments on commit e6763eb

Please sign in to comment.