diff --git a/.github/workflows/follow.yml b/.github/workflows/follow.yml index 4827393..0614aa9 100644 --- a/.github/workflows/follow.yml +++ b/.github/workflows/follow.yml @@ -1,6 +1,7 @@ name: Check upstream releases on: + workflow_dispatch: schedule: - cron: '0 0 * * *' @@ -9,26 +10,26 @@ jobs: runs-on: ubuntu-latest steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v2 + - name: Check out code into the Go module directory + uses: actions/checkout@v2 - - name: Set up Go 1.x - uses: actions/setup-go@v2 - with: - go-version: ^1.16 + - name: Set up Go 1.x + uses: actions/setup-go@v2 + with: + go-version: 'stable' - - name: Run Go project - run: > - cd upstream-follower && \ - go build -o follow && \ - cd .. && \ - ./upstream-follower/follow \ - -email "bot@yumechi.jp" \ - -name "Gotify-broadcast release bot" \ - -coauthor-email "yume@yumechi.jp" \ - -coauthor-name "eternal-flame-AD" \ - -days 730 \ - -commit \ - -tag - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Run Go project + run: > + cd upstream-follower && \ + go build -o follow && \ + cd .. && \ + ./upstream-follower/follow \ + -email "bot@yumechi.jp" \ + -name "Gotify-broadcast release bot" \ + -coauthor-email "yume@yumechi.jp" \ + -coauthor-name "eternal-flame-AD" \ + -days 730 \ + -commit \ + -tag + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}