Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/checkin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 20
- name: Verify that action.yml files are in sync
run: |
npm run update-detached-action.yml &&
if ! git diff --exit-code \*action.yml
then
echo '::error::action.yml files are not in sync, maybe run `npm run update-detached-action.yml`?'
exit 1
fi
- name: Install dependencies
run: npm ci
- name: Run tests
Expand All @@ -24,7 +32,8 @@ jobs:
- name: Verify that the project is built
run: |
if [[ -n $(git status -s) ]]; then
echo "ERROR: generated dist/ differs from the current sources"
echo "ERROR: generated lib/ differs from the current sources"
git status -s
git diff
exit 1
fi
1 change: 0 additions & 1 deletion detached/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,3 @@ outputs:
description: 'The raw SSH address without the "ssh" prefix (only set when detached mode is enabled)'
web-url:
description: 'The web URL to connect to the tmate session (only set when detached mode is enabled and web URL is available)'

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"scripts": {
"start": "node src/index.js",
"build": "ncc build src/main.js -o lib",
"update-detached-action.yml": "sed '/^runs:$/{N;N;N;s/lib\\//..\\/&/g;};/^ detached:/{N;N;N;s/\\(default: .\\)false/\\1true/g;}' action.yml >detached/action.yml",
"test": "GITHUB_EVENT_PATH= jest"
},
"repository": {
Expand Down