Files
labeler/.github/workflows/check_dist.sh
Patrick Ellis 5189af2017 f
2021-06-21 12:24:01 -04:00

20 lines
747 B
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#! /usr/bin/env bash
dist_index_diff=$(git diff --exit-code --text -- dist/index.js)
if [[ "$dist_index_diff" ]]; then
echo -e "$dist_index_diff\n‼ Changes detected to dist/index.js! \n\tPlease run \`npm run build' and commit the result." >&2
exit 1
fi
# - run: |
# if [[ "$(git status --porcelain)" != "" ]]; then
# echo "::set-output name=createPR::true"
# git config --global user.email "github-actions@github.com"
# git config --global user.name "github-actions[bot]"
# git checkout -b bots/updateGitHubDependencies-${{github.run_number}}
# git add .
# git commit -m "Update Dependencies"
# git push --set-upstream origin bots/updateGitHubDependencies-${{github.run_number}}
# fi