1
2
3
4
5
6
7
|
name: GitHub Actions Demo
on: [push, pull_request]
jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
steps:
- run: echo "Hello World!"
|
on:
workflow_dispatch:
inputs:
name:
description: 'Person to greet'
required: true
default: 'Mona the Octocat'
|
on:
push
|
on:
issues:
types: [opened, edited, milestoned]
|
on:
issue_comment:
types: [created, deleted]
|
on:
project:
types: [created, deleted]
|
on:
pull_request:
types: [assigned, opened, synchronize, reopened]
|
on:
repository_dispatch:
types:
- webhook-1
- webhook-2
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Hello World
run: |
echo Hello World!
|
curl -X POST https://api.github.com/repos/:owner/:repo/dispatches
-H "Accept: application/vnd.github.everest-preview+json"
-H "Authorization: token TRIGGER_TOKEN"
--data '{"event_type": "TRIGGER_EVENT"}'
|
curl -X POST https://api.github.com/repos/shaowenchen/wait-webhook-to-run/dispatches
-H "Accept: application/vnd.github.everest-preview+json"
-H "Authorization: token ghp_xxxxxxxxxxxxxxxxxxxxxxxxxx"
--data '{"event_type": "webhook-1"}'
|
curl -X POST https://api.github.com/repos/shaowenchen/wait-webhook-to-run/dispatches
-H "Accept: application/vnd.github.everest-preview+json"
-H "Authorization: token ghp_xxxxxxxxxxxxxxxxxxxxxxxxxx"
--data '{"event_type": "webhook-2"}'
|
相关推荐
作者 | 汪萌海(木苏) 阿里巴巴技术专家 关注“阿里巴巴云原生”公众号,回复关键词“入门”,即可下载从零入门 K8s 系列文章 PPT。 导读:Kubernetes 作为当下最流行的容器自动化运维平台,以声明式实现了灵活的容器编排,本文以 v1.16 版本为基础详细介绍了 K8s 的基本调度框架、流程,以及主要的过滤器、Score 算法实现等,并介绍了两种方式用于实现自定义调度能力。 调度流程
第1章 环境概述 环境介绍: OS:Linux CentOS 7.3 3.10.0-514.el7.x86_64 Master IP:192.168.100.50 组件 版本 部署方式 安装目录或访问入口 etcd 3.3.2 二进制 /usr/local/kubernetes/bin/etcd docker 18.03.0-ce 二进制 /usr/bin/docker flannel 0.
由稀土掘金社区主办的 「掘金年度技术演讲」 将于1月20日在深圳湾万丽酒店举办。 活动邀请了来自字节跳动、NVIDIA、Datastrato、华为诺亚方舟实验室、Jina AI等企业的技术大咖齐聚一堂,分享大前端、AI和云原生等话题。期待在此次活动中与各位开发者共同回顾总结2023技术变革,展望2024开发者的机遇。 🔥火热报名中 活动官网:juejin.cn/meetings/ta… 活动报名链
在 Django 中,request 包含了一次请求的全部信息。后端处理逻辑经常需要用到 request 中的信息。比如, DRF 框架中想要随时能够获取到 request,或者将一些参数全局传递。Django 第三方 App 中有一些工具可以满足要求,但它们并不是安全可靠的。意思是,如果 Django 启动时,使用了多线程或协程,在获取 request 时,可能会发生错误。这显然是不能接受的。下
回到顶部