MSBuild task that shouldn't run in CI

I've got an MSBuild task which I don't want to run in my pipelines. So I wrote the following:
<Target Name="MissionDesigner" BeforeTargets="AfterBuild" Condition="'$(GITHUB_ACTIONS)' == ''">
<Exec Command="dotnet run --no-dependencies --project ../DragaliaAPI.MissionDesigner -- ../DragaliaAPI.Shared/Resources/Missions/MissionProgressionInfo.json" ConsoleToMSBuild="true"/>
</Target>
<Target Name="MissionDesigner" BeforeTargets="AfterBuild" Condition="'$(GITHUB_ACTIONS)' == ''">
<Exec Command="dotnet run --no-dependencies --project ../DragaliaAPI.MissionDesigner -- ../DragaliaAPI.Shared/Resources/Missions/MissionProgressionInfo.json" ConsoleToMSBuild="true"/>
</Target>
because according to github, the GITHUB_ACTIONS env var should always be set by default in CI: https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables However, it still seems to run in my pipelines judging by the output. Am I doing something wrong?
1 Reply
dreadfullydistinct
dreadfullydistinctOP12mo ago
Think it might be because the build is in my docker file oops
Want results from more Discord servers?
Add your server