๐Ÿ“ฃ GitHub ํŒ”๋กœ์›Œ ๋ณ€๊ฒฝ ์•Œ๋ฆผ ๋ฐ›๊ธฐ

๋‚ด ์›Œํฌํ”Œ๋กœ์šฐ



GitHub์˜ ์ ๊ทน์ ์ธ ์‚ฌ์šฉ์ž๋กœ์„œ ์ €๋Š” ํ•ญ์ƒ GitHub์˜ ์ƒˆ๋กœ์šด ํŒ”๋กœ์›Œ์— ๊ด€์‹ฌ์ด ์žˆ์œผ๋ฉฐ ๊ทธ๋“ค์ด ๋ˆ„๊ตฌ์ธ์ง€, ์–ด๋””์—์„œ ์™”๋Š”์ง€, ๋ฌด์—‡์„ ํ•˜๋Š”์ง€ ๋“ฑ์— ๋Œ€ํ•ด ๋งŽ์€ ๊ด€์‹ฌ์„ ๊ฐ€์ง€๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

๊ทธ๋ž˜์„œ ํŒ”๋กœ์›Œ ๋ณ€๊ฒฝ ์ด๋ฒคํŠธ์— ๋Œ€ํ•ด ๋งค์ผ ์ด๋ฉ”์ผ์„ ๋ณด๋‚ด๋Š” GitHub Action์„ ๋งŒ๋“ญ๋‹ˆ๋‹ค.

์—ฌ๊ธฐ์žˆ์–ด !


์†Œ๋กœ์Šฌ๋ฆฌ์šฐ1029 / ์ถ”์ข…์ž ๋ณ€๊ฒฝ


๐Ÿ“ฃ GitHub ํŒ”๋กœ์›Œ ๋ณ€๊ฒฝ ์ด๋ฒคํŠธ ๋ฐ›๊ธฐ





์ถ”์ข…์ž ๋ณ€๊ฒฝ


์ด ์ž‘์—…์€ ๋ฌด์—‡์„ ํ•ฉ๋‹ˆ๊นŒ?


GitHub ํŒ”๋กœ์›Œ ๋ณ€๊ฒฝ ์ด๋ฒคํŠธ๋ฅผ ๊ฐ€์ ธ์˜ต๋‹ˆ๋‹ค. ์ฆ‰, ์‚ฌ์šฉ์ž๊ฐ€ ํšŒ์›๋‹˜์„ ํŒ”๋กœ์šฐํ•˜๊ฑฐ๋‚˜ ์–ธํŒ”๋กœ์šฐํ•  ๋•Œ์ž…๋‹ˆ๋‹ค.
GitHub๋Š” 'ํŒ”๋กœ์šฐ' ์ด๋ฒคํŠธ๋ฅผ ์ œ๊ณตํ•˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— ์‹ค์‹œ๊ฐ„์ด ์•„๋‹™๋‹ˆ๋‹ค.
๋”ฐ๋ผ์„œ ํฌ๋ก  ์ž‘์—…์œผ๋กœ ์ฃผ๊ธฐ์ ์œผ๋กœ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
์ž‘๋™ ๋ฐฉ์‹์€ detailed explanation์„ ์ฐธ์กฐํ•˜์‹ญ์‹œ์˜ค.

๋‚ด ์ž์‹ ์˜ ์ž‘์—… ์˜ˆ:


name: follower notifier
on
  # notify me daily
  schedule:
    - cron: '0 3 * * *' # in UTC time
jobs:
  main:
    runs-on: ubuntu-latest
    steps:
      - name: get follower change
        id: followerChange
        uses: Sorosliu1029/follower-change@v2
        with:
          myToken: ${{ secrets.MY_TOKEN }}
          notifyUnFollowEvent: true
      - name: email me
        uses: dawidd6/action-send-mail@v3
        if: steps.followerChange.outputs.shouldNotify == 'true'
        with:
          server_address: smtp.qq.com
          server_port: 465
          username: ${{ secrets.MAIL_USERNAME }}
          password: ${{ secrets.MAIL_PASSWORD }}
          subject: GitHub Follower Change
          from: Follower Change
โ€ฆ

์ œ์ถœ ์นดํ…Œ๊ณ ๋ฆฌ:

Wacky Wildcards

Yaml ํŒŒ์ผ ๋˜๋Š” ์ฝ”๋“œ ๋งํฌ

This workflow composites my follower-change action with Send email action

name: follower notifier
on:
  schedule:
    - cron: '0 3 * * *' # in UTC time
  workflow_dispatch:
jobs:
  main:
    runs-on: ubuntu-latest
    steps:
      - name: get follower change
        id: followerChange
        uses: Sorosliu1029/follower-change@v2
        with:
          myToken: ${{ secrets.MY_TOKEN }}
          notifyUnFollowEvent: true
      - name: email me
        uses: dawidd6/action-send-mail@v3
        if: steps.followerChange.outputs.shouldNotify == 'true'
        with:
          server_address: smtp.qq.com
          server_port: 465
          username: ${{ secrets.MAIL_USERNAME }}
          password: ${{ secrets.MAIL_PASSWORD }}
          subject: GitHub Follower Change
          from: Follower Change Notifier
          to: ${{ secrets.TO_EMAIL_ADDRESS }}
          html_body: file://${{ steps.followerChange.outputs.htmlFilePath }}


์ถ”๊ฐ€ ๋ฆฌ์†Œ์Šค/์ •๋ณด



์ด๋ฉ”์ผ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค. ๋งค์ผ ๋ฐ›์œผ์‹œ๊ธธ ๋ฐ”๋ž๋‹ˆ๋‹ค!

์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ