에코 릴리스
내 워크플로우
친애하는 여러분, 이것은 #ActionsHackathon
Echo the Release의 두 번째 항목입니다. 이 GitHub 작업은 구성한 프로젝트에 대한 새 릴리스가 있는 경우 Alexa 장치에 알리는 데 도움이 됩니다.제출 카테고리:
흥미로운 IoT
Yaml 파일
QA인사이트 / 에코 릴리스
이 GitHub 작업은 사용자가 팔로우하고 있는 즐겨찾는 GitHub 리포지토리의 새 릴리스가 있는 경우 Echo 장치에 알립니다.
에코 릴리스
 
 
 
 
이 GitHub 작업은 사용자가 팔로우하고 있는 즐겨찾는 GitHub 리포지토리의 새 릴리스가 있는 경우 Echo 장치에 알립니다.
 
 이 GitHub 작업을 사용하는 방법은 무엇입니까?
다음은 알림을 구성하기 위한 전제 조건입니다.
다음은 알림을 구성하기 위한 전제 조건입니다.
Notify Me 기술을 통합하려면 언급된 단계here를 따르십시오. https://api.github.com/repos/QAInsights/Sample-Repo/releases/latest 릴리스, 태그 등을 노출하고 있습니다. 이 작업을 구성하는 단계:
echo.txt 파일을 만듭니다. ECHO_KEY.ECHO_TOKEN View on GitHub
name: Echo the Release
on: 
  schedule:
    - cron: "*/1 * * * *"
jobs:
  get-version:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
      with:
        token: ${{ secrets.ECHO_TOKEN }}
    - name: Repo 1
      run: |
        t=$(curl -sL https://api.github.com/repos/<UserName>/<RepoName>/releases/latest | jq -r ".name")
        if [ ${t} != null ]
        then
          echo ${t} > Sample-Repo/echo.txt
        fi
    - name: Repo 2
      run: |
        t=$(curl -sL https://api.github.com/repos/<UserName>/<RepoName>/releases/latest | jq -r ".name")
        if [ ${t} != null ]
        then
          echo ${t} > Another-Sample-Repo/echo.txt
        fi
    - name: Check for modified files
      id: git-check
      run: | 
        git diff --name-only | xargs -L1 dirname | uniq > changes.txt
        while read p; do
          if [ $p != "." ]
          then
            k=${{ secrets.ECHO_KEY }}
            curl https://api.notifymyecho.com/v1/NotifyMe -H "Content-Type: application/json" -d '{"notification":"New release is now available for '"$p"'.","accessCode":"'"$k"'"}'
          fi
        done <changes.txt        
        echo "" > changes.txt
    - name: Commit latest release version
      run: |
        git config --global user.name '<>'
        git config --global user.email '<>'
        git commit -am "New release version"
        git push
추가 리소스/정보
덕분에 Notify Me
Reference
이 문제에 관하여(에코 릴리스), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/qainsights/placeholder-title-3la7텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)