Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Allow third parties to perform a compilation without committing or pushing the assets.
This is useful in a CI context when in a PR you need to compile the assets to prevent wrong changes to affect the target branch.
An example for a possible configuration is
DRY_RUN: ${{ github.event_name != 'pull_request' }}
Let's assume your colleague made a PR, the PR includes changes in some .ts|.tsx files. The action is not running in the PR but only in the target branch and only after the merge.
It might happen that after the merge the compilation of the assets failed, now you have a broken build.
To prevent that, we would like to run the assets compilation in the PR but the branch associated to the PR does not need to get the assets updated since them will be compiled when the PR will be merged.
Having the dry-run option ON will allow us to run the compilation as part of the CI of the PR to ensure the changes are not impacting negatively the project. Nonetheless we do not want to commit and push the assets in the branch but only when the PR is merged, hence in the target branch.
It is the target branch responsible to commit and push the assets to avoid conflicts and problems.