From 6e45d15c24bd45d39b105ab6be8f3e4dc9254750 Mon Sep 17 00:00:00 2001 From: Tim Clephas Date: Mon, 27 May 2024 08:38:30 +0200 Subject: [PATCH] Only deploy on main branch --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9f9b0ba1..c48a3a22 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: