Skip to content

Commit

Permalink
Only deploy on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Timple committed May 27, 2024
1 parent 247cbe1 commit 6e45d15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:
with:
ROS_DISTRO: iron
DEB_DISTRO: jammy
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} only on main branch
GITHUB_TOKEN: "${{ github.ref == 'refs/heads/main' && secrets.GITHUB_TOKEN || '' }}"
REPOS_FILE: iron.repos
GIT_LFS: true
# List generated by:
Expand Down

0 comments on commit 6e45d15

Please sign in to comment.