summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/send_autobuild_webdocs_ping.yml39
1 files changed, 30 insertions, 9 deletions
diff --git a/.github/workflows/send_autobuild_webdocs_ping.yml b/.github/workflows/send_autobuild_webdocs_ping.yml
index 5d60d0c..1bf5e0c 100644
--- a/.github/workflows/send_autobuild_webdocs_ping.yml
+++ b/.github/workflows/send_autobuild_webdocs_ping.yml
@@ -1,18 +1,39 @@
-name: Remote Dispatch Action Initiator
+# This is a basic workflow to help you get started with Actions
+name: CI
+
+# Controls when the workflow will run
on:
+ # Triggers the workflow on push or pull request events but only for the "main" branch
push:
+ branches: [ "main" ]
+ pull_request:
+ branches: [ "main" ]
+
+ # Allows you to run this workflow manually from the Actions tab
+ workflow_dispatch:
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
- ping-pong:
+ # This workflow contains a single job called "build"
+ build:
+ # The type of runner that the job will run on
runs-on: ubuntu-latest
+
+ # Steps represent a sequence of tasks that will be executed as part of the job
steps:
- - name: PING - Dispatch initiating repository event
- if: github.event.action != 'pong'
- run: |
- curl -X post https://api.github.com/repos/CatgirlsRodeo/dev.catgirls.rodeo/dispatches \
- -H "Accept: application/vnd.github+json" \
- -H "Authorization: Bearer ${{ secrets.access_token }}" \
- -d '{"event_type":"on-demand-test","client_payload":{"unit":false,"integration":true}}'
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
+ - uses: actions/checkout@v3
+ # Runs a single command using the runners shell
+ - name: Run a one-line script
+ run: echo Hello, world!
+ - name: remote stuff
+ run: |
+ curl -XPOST -u "${{ secrets.ACCESS_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/fabyanMikhael/TestA/dispatches --data '{"event_type": "build_application"}'
+ # Runs a set of commands using the runners shell
+ - name: Run a multi-line script
+ run: |
+ echo Add other actions to build,
+ echo test, and deploy your project.