Skip to content

Commit

Permalink
Update sync-upstream.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Pauli Jokela <pauli.jokela@didstopia.com>
  • Loading branch information
Dids authored Aug 10, 2023
1 parent c7db6c3 commit 5b7d5b0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/sync-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:

# Step 3: Display a sample message based on the sync output var 'has_new_commits'
- name: Build Trigger
if: steps.sync.outputs.has_new_commits == 'true' && env.ACT != 'true'
if: steps.sync.outputs.synced == 'true'
run: |
echo "New commits were found and synced, triggering a new firmware build"
[ -z "${{ secrets.GITHUB_TOKEN }}" ] && echo "Skipping, no GITHUB_TOKEN" && exit 0
Expand All @@ -99,11 +99,11 @@ jobs:
}'
# - name: No new commits
# if: steps.sync.outputs.has_new_commits == 'false'
# if: steps.sync.outputs.synced == 'false'
# run: echo "There were no new commits."

# - name: Show value of 'has_new_commits'
# run: echo ${{ steps.sync.outputs.has_new_commits }}
# - name: Show value of 'synced'
# run: echo ${{ steps.sync.outputs.synced }}

sync_bugfix_branch:
## TODO: Test running on self-hosted runners instead
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:

# Step 3: Display a sample message based on the sync output var 'has_new_commits'
- name: Build Trigger
if: steps.sync.outputs.has_new_commits == 'true' && env.ACT != 'true'
if: steps.sync.outputs.synced == 'true'
run: |
echo "New commits were found and synced, triggering a new firmware build"
[ -z "${{ secrets.GITHUB_TOKEN }}" ] && echo "Skipping, no GITHUB_TOKEN" && exit 0
Expand All @@ -181,8 +181,8 @@ jobs:
}'
# - name: No new commits
# if: steps.sync.outputs.has_new_commits == 'false'
# if: steps.sync.outputs.synced == 'false'
# run: echo "There were no new commits."

# - name: Show value of 'has_new_commits'
# run: echo ${{ steps.sync.outputs.has_new_commits }}
# - name: Show value of 'synced'
# run: echo ${{ steps.sync.outputs.synced }}

0 comments on commit 5b7d5b0

Please sign in to comment.