-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
99 additions
and
148 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
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 |
---|---|---|
|
@@ -32,26 +32,3 @@ jobs: | |
with: | ||
disable-changelog: true | ||
node-module: true | ||
|
||
# This workflow contains a single job called "build" | ||
build: | ||
name: Submodule update | ||
runs-on: ubuntu-latest | ||
steps: | ||
########################## | ||
# Checkout the code base # | ||
########################## | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
#################################### | ||
# Run the action against code base # | ||
#################################### | ||
- name: run action | ||
id: run_action | ||
uses: fatjyc/[email protected] | ||
with: | ||
user: Murzbul | ||
token: ${{ secrets.GH_TOKEN }} | ||
repo: nexp-cli | ||
repo_owner: DigiChanges |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Update nexp-cli | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
update-nexp-cli: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Clone nexp-cli repository | ||
run: | | ||
git clone --recurse-submodules https://Murzbul:${{env.GITHUB_TOKEN}}@github.com/DigiChanges/nexp-cli.git | ||
cd nexp-cli | ||
git config user.email "[email protected]" | ||
git config user.name "GitHub Action" | ||
- name: Update submodule | ||
run: | | ||
cd nexp-cli | ||
git submodule update --remote --merge | ||
git add . | ||
git commit -m "feat: update nexp verion: ${{github.event.release.tag_name}}" | ||
git push https://Murzbul:${{env.GITHUB_TOKEN}}@github.com/DigiChanges/nexp-cli.git HEAD:master |
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
Oops, something went wrong.