Skip to content

Commit a3f15e5

Browse files
authored
Fixes for automated builds (#83)
* Fix broken upstream sync; Remove orphaned environment variable * Fix condition for automated alive branch creation
1 parent 1ea28d7 commit a3f15e5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/build_loop.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ env:
1515
UPSTREAM_BRANCH: ${{ github.ref_name }} # branch on upstream repository to sync from (replace with specific branch name if needed)
1616
TARGET_BRANCH: ${{ github.ref_name }} # target branch on fork to be kept in sync, and target branch on upstream to be kept alive (replace with specific branch name if needed)
1717
ALIVE_BRANCH: alive
18-
WORKFLOW_PERMISSIONS: false
1918

2019
jobs:
2120
validate:
@@ -65,7 +64,7 @@ jobs:
6564
fi
6665
6766
- name: Create alive branch
68-
if: env.ALIVE_BRANCH_EXISTS != 'true'
67+
if: env.ALIVE_BRANCH_EXISTS == 'false'
6968
env:
7069
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7170
run: |
@@ -87,7 +86,7 @@ jobs:
8786
# Checks for changes in upstream repository; if changes exist prompts sync for build
8887
# Performs keepalive to avoid stale fork
8988
check_latest_from_upstream:
90-
needs: check_alive_and_permissions
89+
needs: [validate, check_alive_and_permissions]
9190
runs-on: ubuntu-latest
9291
name: Check upstream and keep alive
9392
outputs:
@@ -156,7 +155,7 @@ jobs:
156155
# Builds Loop
157156
build:
158157
name: Build
159-
needs: check_latest_from_upstream
158+
needs: [validate, check_alive_and_permissions, check_latest_from_upstream]
160159
runs-on: macos-13
161160
permissions:
162161
contents: write

0 commit comments

Comments
 (0)