Skip to content
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

Add option to set repo owner for auto-update in manual run #331

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
19 changes: 17 additions & 2 deletions .github/workflows/build-electron-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:
isNotarizeDisabled:
description: 'Is notarize disabled (true / 1)?'
required: false
repoOwner:
description: 'Repository owner for auto-update'
required: false

env:
DOCKER_BUILDKIT: 1
Expand Down Expand Up @@ -50,6 +53,13 @@ jobs:
name: Use BFX API Staging for queries
run: |
echo "IS_BFX_API_STAGING=1" >> $GITHUB_ENV
- name: Set repository owner for auto-update
run: |
if [[ "${{ github.event.inputs.repoOwner }}" != "" ]]; then
echo "REPO_OWNER=${{ github.event.inputs.repoOwner }}" >> $GITHUB_ENV
else
echo "REPO_OWNER=${{ github.repository_owner }}" >> $GITHUB_ENV
fi
- name: Cache Electron binaries
id: electron-cache
uses: actions/cache@v4
Expand All @@ -68,7 +78,6 @@ jobs:
continue-on-error: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_OWNER: ${{ github.repository_owner }}
with:
timeout_minutes: 20
retry_wait_seconds: 10
Expand Down Expand Up @@ -124,6 +133,13 @@ jobs:
name: Use BFX API Staging for queries
run: |
echo "IS_BFX_API_STAGING=1" >> $GITHUB_ENV
- name: Set repository owner for auto-update
run: |
if [[ "${{ github.event.inputs.repoOwner }}" != "" ]]; then
echo "REPO_OWNER=${{ github.event.inputs.repoOwner }}" >> $GITHUB_ENV
else
echo "REPO_OWNER=${{ github.repository_owner }}" >> $GITHUB_ENV
fi
- uses: actions/setup-node@v4
with:
node-version: 18.17.1
Expand All @@ -149,7 +165,6 @@ jobs:
CSC_LINK: ${{ secrets.BFX_APPLE_BUILD_CERTIFICATE_B64 }}
CSC_KEY_PASSWORD: ${{ secrets.BFX_APPLE_BUILD_CERTIFICATE_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO_OWNER: ${{ github.repository_owner }}
ELECTRON_CACHE: ${{ runner.temp }}/.cache/electron
with:
timeout_minutes: 40
Expand Down