From 4bab38b8df1c924c3a8d3aafb33e2468c4c3f974 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Thu, 11 Jan 2024 13:03:11 +1300 Subject: [PATCH] CICD: Make it Possible to Run CICD Builds in a Fork. Use the project name to resolve the target repository to create the release in. Signed-off-by: Michael Keller --- .github/workflows/android.yml | 3 +-- .github/workflows/linux-trusty-5.12.yml | 2 +- .github/workflows/mac.yml | 2 +- .github/workflows/post-releasenotes.yml | 2 +- .github/workflows/windows.yml | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 8726a345d..477c5120f 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -53,7 +53,6 @@ jobs: ln -s /android/platform-tools . ln -s /android/platforms . ln -s /android/tools . - ls -l git config --global user.email "ci@subsurface-divelog.org" git config --global user.name "Subsurface CI" git config --global --add safe.directory $GITHUB_WORKSPACE @@ -72,7 +71,7 @@ jobs: uses: softprops/action-gh-release@v1 with: tag_name: v${{ steps.version_number.outputs.version }} - repository: subsurface/nightly-builds + repository: ${{ github.repository_owner }}/nightly-builds token: ${{ secrets.NIGHTLY_BUILDS }} prerelease: false fail_on_unmatched_files: true diff --git a/.github/workflows/linux-trusty-5.12.yml b/.github/workflows/linux-trusty-5.12.yml index 23a7589ce..8ce661cb5 100644 --- a/.github/workflows/linux-trusty-5.12.yml +++ b/.github/workflows/linux-trusty-5.12.yml @@ -65,7 +65,7 @@ jobs: uses: softprops/action-gh-release@v1 with: tag_name: v${{ steps.version_number.outputs.version }} - repository: subsurface/nightly-builds + repository: ${{ github.repository_owner }}/nightly-builds token: ${{ secrets.NIGHTLY_BUILDS }} prerelease: false fail_on_unmatched_files: true diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 6e049fe37..29d19fdcd 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -60,7 +60,7 @@ jobs: uses: softprops/action-gh-release@v1 with: tag_name: v${{ steps.version_number.outputs.version }} - repository: subsurface/nightly-builds + repository: ${{ github.repository_owner }}/nightly-builds token: ${{ secrets.NIGHTLY_BUILDS }} prerelease: false fail_on_unmatched_files: true diff --git a/.github/workflows/post-releasenotes.yml b/.github/workflows/post-releasenotes.yml index 5f317a56a..bf21dff55 100644 --- a/.github/workflows/post-releasenotes.yml +++ b/.github/workflows/post-releasenotes.yml @@ -29,7 +29,7 @@ jobs: uses: softprops/action-gh-release@v1 with: tag_name: v${{ steps.version_number.outputs.version }} - repository: subsurface/nightly-builds + repository: ${{ github.repository_owner }}/nightly-builds token: ${{ secrets.NIGHTLY_BUILDS }} prerelease: false files: gh_release_notes.md diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 6b0344ffa..9fdf86b65 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -54,7 +54,7 @@ jobs: uses: softprops/action-gh-release@v1 with: tag_name: v${{ steps.version_number.outputs.version }} - repository: subsurface/nightly-builds + repository: ${{ github.repository_owner }}/nightly-builds token: ${{ secrets.NIGHTLY_BUILDS }} prerelease: false fail_on_unmatched_files: true