summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorPradeepKiruvale <pradeepkumar.kj@softwareag.com>2022-02-09 11:56:40 +0530
committerGitHub <noreply@github.com>2022-02-09 11:56:40 +0530
commit0249b1369e5cfcd53f6e590ab9aa4c23f0278b58 (patch)
treeaab424cef3348cf31662797d201ea3bc42c68b5d /.github
parentea0a0b58333ee22a71955db499366e1858d12e42 (diff)
[800] CI workflow for updating tedge reference docs (#820)
* CI workflow for updating tedge ref docs * update the toolchain version Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/update-tedge-ref-docs.yml48
1 files changed, 48 insertions, 0 deletions
diff --git a/.github/workflows/update-tedge-ref-docs.yml b/.github/workflows/update-tedge-ref-docs.yml
new file mode 100644
index 00000000..8f7d4609
--- /dev/null
+++ b/.github/workflows/update-tedge-ref-docs.yml
@@ -0,0 +1,48 @@
+name: update-tedge-reference-documents
+
+on:
+ # trigger manually
+ workflow_dispatch:
+ # runs automatically on 00:00 UTC on 1st of every month
+ schedule:
+ - cron: "0 0 1 * *"
+
+jobs:
+ build-tedge-create-ref-docs:
+ runs-on: Ubuntu-20.04
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - run: |
+ git config --global user.email "info@thin-edge.io"
+ git config --global user.name "Versioneer"
+
+ - name: enable toolchain via github action
+ # https://github.com/actions-rs/toolchain
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: 1.58.1
+ override: true
+
+ - name: Enable cache
+ # https://github.com/marketplace/actions/rust-cache
+ uses: Swatinem/rust-cache@v1
+
+ - name: Build tedge
+ uses: actions-rs/cargo@v1
+ # https://github.com/marketplace/actions/rust-cargo
+ with:
+ command: build
+ args: --release -p tedge
+
+ - name: run the update script
+ run: ./docs/gen-ref-docs.sh
+ - name: Create Pull Request
+ uses: peter-evans/create-pull-request@v3
+ with:
+ commit-message: Create tedge cli reference docs
+ delete-branch: true
+ title: Create tedge reference docs
+ body: Create tedge reference docs
+ reviewers: itsyitsy