From 7b7695852fc8ef51c8a62a595cea82de753268a6 Mon Sep 17 00:00:00 2001 From: qian01_chen Date: Wed, 19 Jul 2023 17:38:54 +0800 Subject: [PATCH 1/9] test --- .github/workflows/github-actions-demo.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/github-actions-demo.yml diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml new file mode 100644 index 0000000..8dccb92 --- /dev/null +++ b/.github/workflows/github-actions-demo.yml @@ -0,0 +1,19 @@ +name: GitHub Actions Demo +run-name: ${{ github.actor }} is testing out GitHub Actions +on: [push] +jobs: + Explore-GitHub-Actions: + runs-on: ubuntu-latest + steps: + - run: echo " The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo " This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo " The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo " The ${{ github.repository }} repository has been cloned to the runner." + - run: echo "️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls ${{ github.workspace }} + - run: echo " This job's status is ${{ job.status }}." + From ad992585e0deb1844f8d83e10159b6d22c38805d Mon Sep 17 00:00:00 2001 From: qian01_chen Date: Wed, 19 Jul 2023 17:41:05 +0800 Subject: [PATCH 2/9] test --- .github/workflows/github-actions-demo.yml | 12 +++++------- openvpn/ovpn_isexist_user.sh | 3 ++- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 8dccb92..f84eb18 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -1,19 +1,17 @@ name: GitHub Actions Demo -run-name: ${{ github.actor }} is testing out GitHub Actions +run-name: ${{ github.actor }} is testing out GitHub Actions on: [push] jobs: Explore-GitHub-Actions: runs-on: ubuntu-latest steps: - - run: echo " The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo " This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo " The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." + - run: | + make build_tar_gz - name: Check out repository code uses: actions/checkout@v3 - - run: echo " The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "️ The workflow is now ready to test your code on the runner." - name: List files in the repository run: | ls ${{ github.workspace }} - - run: echo " This job's status is ${{ job.status }}." + - run: echo "job's status is ${{ job.status }}." diff --git a/openvpn/ovpn_isexist_user.sh b/openvpn/ovpn_isexist_user.sh index e3fcb2c..15323bc 100755 --- a/openvpn/ovpn_isexist_user.sh +++ b/openvpn/ovpn_isexist_user.sh @@ -13,7 +13,8 @@ then echo "user is not set!" exit 1 else - ls /etc/openvpn/client/keys/$user + # ls /etc/openvpn/client/keys/$user + ls /root/openvpn/softs/easy-rsa/easyrsa3/pki/private/$user.key # ls /tmp/keys/$user #echo "/tmp/keys/$user" From c3508fd8246e5f32f204dd1cbfe846ab6ef3e52b Mon Sep 17 00:00:00 2001 From: qian01_chen Date: Wed, 19 Jul 2023 17:43:31 +0800 Subject: [PATCH 3/9] test --- .github/workflows/github-actions-demo.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index f84eb18..d086e4d 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -7,6 +7,7 @@ jobs: steps: - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." - run: | + cd ${{ github.workspace }} make build_tar_gz - name: Check out repository code uses: actions/checkout@v3 From 75b8cfdc83c73bed8d985f3c009b9e7c2f3d3dfc Mon Sep 17 00:00:00 2001 From: qian01_chen Date: Wed, 19 Jul 2023 17:47:50 +0800 Subject: [PATCH 4/9] test --- .github/workflows/github-actions-demo.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index d086e4d..da2113a 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -6,9 +6,11 @@ jobs: runs-on: ubuntu-latest steps: - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." - - run: | - cd ${{ github.workspace }} - make build_tar_gz + - shell: bash + run: | + cd ${{ github.workspace }} + ls + make build_tar_gz - name: Check out repository code uses: actions/checkout@v3 - name: List files in the repository From 4fc188527bdc93848bd1031190c58b2f8a703f15 Mon Sep 17 00:00:00 2001 From: qian01_chen Date: Wed, 19 Jul 2023 17:49:24 +0800 Subject: [PATCH 5/9] test --- .github/workflows/github-actions-demo.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index da2113a..95b752a 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -7,10 +7,10 @@ jobs: steps: - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." - shell: bash - run: | - cd ${{ github.workspace }} - ls - make build_tar_gz + run: | + cd ${{ github.workspace }} + ls + make build_tar_gz - name: Check out repository code uses: actions/checkout@v3 - name: List files in the repository From dd19ab0682a76a6d195e75c7aaf42377fe05d1eb Mon Sep 17 00:00:00 2001 From: qian01_chen Date: Wed, 19 Jul 2023 17:52:11 +0800 Subject: [PATCH 6/9] test --- .github/workflows/github-actions-demo.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 95b752a..8d6f175 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -6,13 +6,13 @@ jobs: runs-on: ubuntu-latest steps: - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." + - name: Check out repository code + uses: actions/checkout@v3 - shell: bash run: | cd ${{ github.workspace }} ls make build_tar_gz - - name: Check out repository code - uses: actions/checkout@v3 - name: List files in the repository run: | ls ${{ github.workspace }} From 5ea81d71507eb9b9133dc995da986e373a60c12f Mon Sep 17 00:00:00 2001 From: qian01_chen Date: Wed, 19 Jul 2023 18:17:42 +0800 Subject: [PATCH 7/9] test --- .github/workflows/github-actions-demo.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 8d6f175..f2da4cf 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -10,11 +10,16 @@ jobs: uses: actions/checkout@v3 - shell: bash run: | - cd ${{ github.workspace }} - ls make build_tar_gz - name: List files in the repository run: | ls ${{ github.workspace }} + - name: Upload to release + - name: Upload tar.gz files + uses: actions/upload-artifact@v2 + with: + name: tarball-artifacts + path: | + *.tar.gz - run: echo "job's status is ${{ job.status }}." From a30e4c0efb8f16f7728b96847bf6ba4b4ecc3a5c Mon Sep 17 00:00:00 2001 From: qian01_chen Date: Wed, 19 Jul 2023 18:19:04 +0800 Subject: [PATCH 8/9] test --- .github/workflows/github-actions-demo.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index f2da4cf..f045a1c 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -14,7 +14,6 @@ jobs: - name: List files in the repository run: | ls ${{ github.workspace }} - - name: Upload to release - name: Upload tar.gz files uses: actions/upload-artifact@v2 with: From 4d1b971aa3c8f6942b7508f735f856bbf76ec7a5 Mon Sep 17 00:00:00 2001 From: qian01_chen Date: Wed, 19 Jul 2023 18:28:17 +0800 Subject: [PATCH 9/9] test --- .github/workflows/github-actions-demo.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index f045a1c..b9ba11e 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -11,6 +11,9 @@ jobs: - shell: bash run: | make build_tar_gz + env: + TRAVIS_BRANCH: 0.21 + - name: List files in the repository run: | ls ${{ github.workspace }}