Skip to content

Commit b41697c

Browse files
committed
CI: Fix BE file lookup; fix last build commit check
1 parent dbe19b7 commit b41697c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
core.setOutput("build_id", context.runNumber + 600); // builds.bepinex.dev build numbers start at 500
3030
- uses: nrwl/last-successful-commit-action@v1
3131
id: last_successful_commit
32-
if: ${{ steps.info.outputs.build_type == 'BleedingEdge' && env.GITHUB_TOKEN != null }}
32+
if: ${{ steps.info.outputs.build_type == 'BleedingEdge' }}
3333
with:
3434
branch: master
35-
workflow_id: build_be.yml
35+
workflow_id: build.yml
3636
github_token: ${{ secrets.GITHUB_TOKEN }}
3737
- uses: actions/setup-dotnet@v1
3838
with:
@@ -45,7 +45,7 @@ jobs:
4545
BEPISBUILDS_HOST: ${{ secrets.BEPISBUILDS_HOST }}
4646
if: ${{ steps.info.outputs.build_type == 'BleedingEdge' && env.BEPISBUILDS_HOST != null }}
4747
run: |
48-
artifacts_list=$(ls ./bin/dist/*.* | tr '\n' ','); artifacts_list=${artifacts_list::-1};
48+
artifacts_list=$(find ./bin/dist -maxdepth 1 -type f | tr '\n' ','); artifacts_list=${artifacts_list::-1};
4949
curl --upload-file "{${artifacts_list}}" --ftp-pasv --ftp-skip-pasv-ip --ftp-create-dirs --ftp-method singlecwd --disable-epsv "ftp://${{ secrets.BEPISBUILDS_AUTH }}@${{ secrets.BEPISBUILDS_HOST }}:${{ secrets.BEPISBUILDS_PORT }}/bepinex_be/artifacts/${{ steps.info.outputs.build_id }}/"
5050
- name: Generate changelog
5151
id: generate_changelog

0 commit comments

Comments
 (0)