File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 2323 # Check if the .github/labeler.yml file exists
2424 - name : Check for labeler configuration
2525 id : labeler-config
26+ env :
27+ GH_TOKEN : ${{ github.token }}
2628 run : |
29+ set -e
2730 if [ -f .github/labeler.yml ]; then
2831 echo "Labeler configuration found"
2932 echo "config=./.github/labeler.yml" >> $GITHUB_STATE
3336 echo "config=${{ github.event.inputs.configuration-path }}" >> $GITHUB_STATE
3437
3538 else
36- echo "::error::No labeler configuration found"
37- # Get configuration from current action repository
38- exit 1
39+ echo "No labeler configuration found"
40+ echo "Downloading configuration file from advanced-security/reusable-workflows repository"
41+
42+ # download file using gh cli
43+ gh api repos/advanced-security/reusable-workflows/contents/.github/labeler.yml -q '.content' | base64 -d > .github/labeler.yml
44+ echo "config=./.github/labeler.yml" >> $GITHUB_STATE
3945
4046 fi
4147
You can’t perform that action at this time.
0 commit comments