Skip to content

Fixes for automated builds #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/build_loop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ env:
UPSTREAM_BRANCH: ${{ github.ref_name }} # branch on upstream repository to sync from (replace with specific branch name if needed)
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)
ALIVE_BRANCH: alive
WORKFLOW_PERMISSIONS: false

jobs:
validate:
Expand Down Expand Up @@ -65,7 +64,7 @@ jobs:
fi

- name: Create alive branch
if: env.ALIVE_BRANCH_EXISTS != 'true'
if: env.ALIVE_BRANCH_EXISTS == 'false'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
Expand All @@ -87,7 +86,7 @@ jobs:
# Checks for changes in upstream repository; if changes exist prompts sync for build
# Performs keepalive to avoid stale fork
check_latest_from_upstream:
needs: check_alive_and_permissions
needs: [validate, check_alive_and_permissions]
runs-on: ubuntu-latest
name: Check upstream and keep alive
outputs:
Expand Down Expand Up @@ -156,7 +155,7 @@ jobs:
# Builds Loop
build:
name: Build
needs: check_latest_from_upstream
needs: [validate, check_alive_and_permissions, check_latest_from_upstream]
runs-on: macos-13
permissions:
contents: write
Expand Down