풀 요청 시 스마트 전구 색상을 빨간색으로 변경하는 Github 워크플로우

Github의 풀 요청(또는 푸시 요청)에 대한 조명 변경



우리 모두는 버그를 수정하거나 새로운 기능을 구축하는 데 집중하는 동안 매우 바쁩니다. 하지만 코드 푸시 또는 풀 요청과 같은 긴급한 일이 발생하면 어떻게 해야 할까요?



이 특정 구현 LIFX 스마트 전구에서 IOT 장치와 대화하는 이 워크플로우는 전구 색상을 변경하여 Github의 특정 작업을 알립니다.

이 Github 워크플로는 풀 요청 시 스마트 전구 색상을 빨간색으로 변경합니다(및 병합 시 녹색 - 이 부분은 WIP임).

progreas의 향후 통합:
  • 병합 충돌 이벤트에서 전구의 노란색 색상 변경
  • Alexa를 스피커로 사용하여 박수 또는 환호 전송(Alexa 푸시 음성 기능)
  • IOT 스마트 플러그(TP 링크/Wyze 등)를 사용하여 커피 추출

  • 이것은 우리가 이 해커톤을 위해 얻을 수 있는 모든 시간에 할 수 있는 가장 기본적인 구현이었습니다. (팀 전체가 이 상태로 가져오는 데에만 거의 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

    추가 리소스/정보



    협력자:

    좋은 웹페이지 즐겨찾기