풀 요청 시 스마트 전구 색상을 빨간색으로 변경하는 Github 워크플로우
4680 단어 actionshackathongithubopensource
Github의 풀 요청(또는 푸시 요청)에 대한 조명 변경
우리 모두는 버그를 수정하거나 새로운 기능을 구축하는 데 집중하는 동안 매우 바쁩니다. 하지만 코드 푸시 또는 풀 요청과 같은 긴급한 일이 발생하면 어떻게 해야 할까요?
이 특정 구현 LIFX 스마트 전구에서 IOT 장치와 대화하는 이 워크플로우는 전구 색상을 변경하여 Github의 특정 작업을 알립니다.
이 Github 워크플로는 풀 요청 시 스마트 전구 색상을 빨간색으로 변경합니다(및 병합 시 녹색 - 이 부분은 WIP임).
progreas의 향후 통합:
이것은 우리가 이 해커톤을 위해 얻을 수 있는 모든 시간에 할 수 있는 가장 기본적인 구현이었습니다. (팀 전체가 이 상태로 가져오는 데에만 거의 4~5시간이 걸렸습니다.)
제출 카테고리:
DIY 배포, 흥미로운 IoT, 전화 친화적, 엉뚱한 와일드카드
Yaml 파일 및 코드 링크
코드 링크
자유롭게 확인하고, 포크하고, 무엇이든 물어보세요. 레포는 다음과 같습니다.
gh-hack-2020 / 극비 앱
로컬 시스템의 IntellJ에서 실행하는 단계:
메인 클래스: io.vertx.core.Launcher
VM 옵션: -Dapp.spring.properties.file=config/application.properties -Dvertx.options.maxEventLoopExecuteTime=100000000000000
프로그램 인수: gh.hack.rest.verticles.MainVerticle -conf config/application-config.json 실행
모듈: 나머지
개발자 해킹의 경우:
View on GitHub
Yaml 파일
# Workflow to help you get started with Actions
name: CI
# Control when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch (push/pull)
on:
push:
branches: master
pull:
branches: master
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# 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:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Running Github Workflow for Push/Pull!
# 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.
- name: Hit curl
uses: wei/curl@master
with:
args: http://54.161.236.73:8888/github/event?repoId=rep1
https://github.com/gh-hack-2020/super-secret-app/blob/master/.github/workflows/iotAction.yml
추가 리소스/정보
협력자:
Reference
이 문제에 관하여(풀 요청 시 스마트 전구 색상을 빨간색으로 변경하는 Github 워크플로우), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/vj/github-workflow-to-change-smart-bulb-color-to-red-on-pull-request-32pl텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)