Compare commits

...

8 Commits

Author SHA1 Message Date
Patrick Ellis
5189af2017 f 2021-06-21 12:24:01 -04:00
Patrick Ellis
feaa12919d Merge branch 'main' into check_dist 2021-06-21 12:19:33 -04:00
Patrick Ellis
7ad42be42d f 2021-06-18 13:51:07 -04:00
Patrick Ellis
fc2badc92d f 2021-06-18 13:47:02 -04:00
Patrick Ellis
92ee5c6319 f 2021-06-18 13:44:21 -04:00
Patrick Ellis
f4547bdc4d f 2021-06-18 13:21:33 -04:00
Patrick Ellis
45fbda5933 f 2021-06-18 13:12:12 -04:00
Patrick Ellis
6a1dea0fee WIP check for diffs in dist/index.js and complain 2021-06-18 13:11:53 -04:00
2 changed files with 42 additions and 0 deletions

19
.github/workflows/check_dist.sh vendored Executable file
View File

@@ -0,0 +1,19 @@
#! /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

23
.github/workflows/check_dist.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
# Fails if any of dist/index.js needs to be rebuilt
name: Check dist/index.js
on:
push:
branches:
- main
- check_dist
pull_request:
branches:
- main
- check_dist
jobs:
check_dist:
runs-on: ubuntu-latest
name: Check dist/index.js for diffs
steps:
- uses: actions/checkout@v1
- run: npm install
- run: npm run build
- run: "${GITHUB_WORKSPACE}/.github/workflows/check_dist.sh"