pantry/.github/workflows/cd.yml
Jacob Heider 44b1c0cfa9
add issues: write
nvalid workflow file: .github/workflows/cd.yml#L32
The workflow is not valid. .github/workflows/cd.yml (Line: 32, Col: 3): Error calling workflow 'pkgxdev/pantry/.github/workflows/new-version.yml@1eeb96302da6f8a7f0f524473a90dc3006b6a38e'. The nested job 'complain' is requesting 'issues: write', but is only allowed 'issues: none'.
2023-12-13 10:30:07 -05:00

41 lines
967 B
YAML

name: cd
run-name: "cd: ${{ github.event.head_commit.message }}"
on:
push:
branches: main
paths: projects/**/*
concurrency:
group: cd/${{ github.ref }}
cancel-in-progress: true
jobs:
get-projects:
runs-on: ubuntu-latest
outputs:
projects: ${{ steps.diff.outputs.diff }}
steps:
- uses: actions/checkout@v4
- uses: technote-space/get-diff-action@v6
id: get-diff
with:
PATTERNS: projects/**/package.yml
- id: diff
run: |
for x in ${{ steps.get-diff.outputs.diff }}; do
y=$(echo $x | sed 's#projects/\(.*\)/package.yml#\1#')
RESULT="$RESULT $y"
done
echo "diff=$RESULT" >> $GITHUB_OUTPUT
pkgit:
strategy:
fail-fast: false
needs: get-projects
permissions:
issues: write
uses: ./.github/workflows/new-version.yml
with:
projects: ${{ needs.get-projects.outputs.diff }}
secrets: inherit