mirror of
https://github.com/actions/labeler.git
synced 2026-01-07 12:47:17 +08:00
f
This commit is contained in:
17
.github/workflows/check_dist.sh
vendored
Executable file
17
.github/workflows/check_dist.sh
vendored
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
|
if [[ "$(git diff --exit-code -- dist/index.js | tee /dev/tty)" ]]; then
|
||||||
|
echo -e "‼️ 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
|
||||||
13
.github/workflows/check_dist.yml
vendored
13
.github/workflows/check_dist.yml
vendored
@@ -20,15 +20,4 @@ jobs:
|
|||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
# - run: |
|
- run: "${GITHUB_WORKSPACE}/.github/workflows/check_dist.sh"
|
||||||
# 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
|
|
||||||
- run: |
|
|
||||||
git diff --exit-code dist/index.js || (echo "Changes detected to dist/index.js! Please run \`npm run build\` and commit the result." >&2 ; exit 1)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user