-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
V4 dev with nsc git-checkout update-submodules and --dissociate (#3)
Most v4 changes should be here: - Update @babel/traverse and braces - Add --dissociate - Use nsc for submodule checkout - Make CI job not fail on pull requests (Compare gh-action,ref:main <-> ns-action,ref:main and gh-action,ref: <-> ns-action,ref: instead of gh-action,ref: <-> ns-action,ref:main This should work well on PRs and still have regression test coverage for NSL-2974.)
- Loading branch information
1 parent
1d33a43
commit e10c48a
Showing
6 changed files
with
204 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,24 +16,44 @@ jobs: | |
runs-on: [nscloud-ubuntu-22.04-staging-amd64-2x4-with-cache, nscloud-git-mirror-5gb] | ||
|
||
steps: | ||
- name: Github Checkout | ||
- name: Github Checkout current | ||
uses: actions/checkout@v4 | ||
- name: Namespace Checkout | ||
- name: Namespace Checkout Current | ||
uses: ./ # Uses an action in the root directory | ||
with: | ||
path: nscloud | ||
ref: main | ||
path: nscloud-current | ||
- name: Compare current | ||
run: | | ||
if cmp --silent -- action.yml nscloud-current/action.yml; then | ||
echo "files contents are identical" | ||
else | ||
echo "files differ:" | ||
diff action.yml nscloud-current/action.yml | ||
exit 1 | ||
fi | ||
- name: Github Checkout main | ||
uses: actions/checkout@v4 | ||
with: | ||
path: github-main | ||
- name: Namespace Checkout main | ||
uses: ./ # Uses an action in the root directory | ||
with: | ||
path: nscloud-main | ||
- name: Compare main | ||
run: | | ||
if cmp --silent -- action.yml nscloud/action.yml; then | ||
if cmp --silent -- github-main/action.yml nscloud-main/action.yml; then | ||
echo "files contents are identical" | ||
else | ||
echo "files differ:" | ||
diff action.yml nscloud/action.yml | ||
diff github-main/action.yml nscloud-main/action.yml | ||
exit 1 | ||
fi | ||
- uses: ruby/[email protected] | ||
with: | ||
payload: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ inputs: | |
|
||
fetch-depth: | ||
description: 'Number of commits to fetch. 0 indicates all history for all branches and tags.' | ||
default: 1 | ||
default: "1" | ||
|
||
path: | ||
description: 'Relative path under $GITHUB_WORKSPACE to place the repository' | ||
|
@@ -42,7 +42,14 @@ inputs: | |
When the `ssh-key` input is not provided, SSH URLs beginning with `[email protected]:` are | ||
converted to HTTPS. | ||
default: false | ||
default: "false" | ||
|
||
dissociate: | ||
description: > | ||
Whether to dissociate the checkout (and submodules, if any) from the Namespace Git mirror: | ||
`true` to dissociate the main checkout, `recursive` to dissociate the main checkout and | ||
all submodules. | ||
default: "false" | ||
|
||
runs: | ||
using: node20 | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.