Skip to content

Commit

Permalink
Merge pull request #331 from ZIMkaRU/feature/add-option-to-set-repo-o…
Browse files Browse the repository at this point in the history
…wner-for-auto-update-in-manual-run

Add option to set repo owner for auto-update in manual run
  • Loading branch information
ezewer authored Mar 6, 2024
2 parents 17ec693 + 5eb1cb1 commit 654a979
Showing 1 changed file with 17 additions and 2 deletions.
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

0 comments on commit 654a979

Please sign in to comment.