From 97711317025111798a68c6619c486aa500030753 Mon Sep 17 00:00:00 2001 From: zizifn <1803942+zizifn@users.noreply.github.com> Date: Sun, 13 Dec 2020 17:03:51 +0800 Subject: [PATCH] chore: update --- .github/workflows/shell.yml | 21 +++++++++++++++++++++ README.md | 12 +++++++++++- action.yml | 21 +++++++++++++++++++++ goodbye.sh | 1 + test.js | 0 5 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/shell.yml create mode 100644 action.yml create mode 100644 goodbye.sh create mode 100644 test.js diff --git a/.github/workflows/shell.yml b/.github/workflows/shell.yml new file mode 100644 index 0000000..14a7fa9 --- /dev/null +++ b/.github/workflows/shell.yml @@ -0,0 +1,21 @@ +name: shell-test + +on: + workflow_dispatch: + branches: + - main + +jobs: + shell-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Run a multi-line script + run: | + echo "Run a multi-line script" + - id: foo + uses: actions/hello-world-composite-run-steps-action@v1 + with: + who-to-greet: 'Mona the Octocat' + - run: echo random-number ${{ steps.foo.outputs.random-number }} + shell: bash diff --git a/README.md b/README.md index 9e3c26d..28f7c7f 100644 --- a/README.md +++ b/README.md @@ -1 +1,11 @@ -# v2ray-heroku \ No newline at end of file +# v2ray-heroku + +## 一键部署 + +## github actions 管理 + +### 重新部署 + +### 停止 + +### 启动 diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..405e717 --- /dev/null +++ b/action.yml @@ -0,0 +1,21 @@ +name: "Hello World" +description: "Greet someone" +inputs: + who-to-greet: # id of input + description: "Who to greet" + required: true + default: "World" +outputs: + random-number: + description: "Random number" + value: ${{ steps.random-number-generator.outputs.random-id }} +runs: + using: "composite" + steps: + - run: echo Hello ${{ inputs.who-to-greet }}. + shell: bash + - id: random-number-generator + run: echo "::set-output name=random-id::$(echo $RANDOM)" + shell: bash + - run: ${{ github.action_path }}/goodbye.sh + shell: bash diff --git a/goodbye.sh b/goodbye.sh new file mode 100644 index 0000000..6521ce5 --- /dev/null +++ b/goodbye.sh @@ -0,0 +1 @@ +echo "Goodbye" \ No newline at end of file diff --git a/test.js b/test.js new file mode 100644 index 0000000..e69de29