Skip to content

suzuki-shunsuke/monitor-gh-follower-action

Repository files navigation

monitor-gh-follower-action

License | Example Notification | Example Workflow | action.yaml

GitHub Action to monitor changes of a specific user's GitHub Followers. By running this action periodically via GitHub Actions' schedule event, you can detect changes of GitHub Followers and post them to a specific GitHub Issue.

e.g. #1

image

Action's Inputs / Outputs

Please see action.yaml.

Setup GitHub Container Registry

This action stores the result of the latest followers into GitHub Container Registry. You need to allow GitHub Access token's owner to access the package.

Oras CLI is used.

Tip

You can install Oras CLI using aqua.

aqua g -i oras-project/oras
  1. Push a dummy followers.json

https://oras.land/docs/commands/oras_push

echo '{}' > followers.json
oras push "ghcr.io/$GITHUB_REPOSITORY/followers.json:latest" followers.json
  1. Grant the permission

If you use GITHUB_TOKEN secret, you need to grant the repository where this action is run to the permission.

Available versions

Caution

We don't add dist/*.js in the main branch and feature branches. So you can't specify main and feature branches as versions.

# This never works as dist/index.js doesn't exist.
uses: suzuki-shunsuke/monitor-gh-followers-action@main

The following versions are available.

  1. Release versions
uses: suzuki-shunsuke/monitor-gh-followers-action@v0.1.0
  1. Pull Request versions: These versions are removed when we feel unnecessary. These versions are used to test pull requests.
uses: suzuki-shunsuke/monitor-gh-followers-action@pr/22
  1. latest branch: This branch is built by CI when the main branch is updated. Note that we push commits to the latest branch forcibly.
uses: suzuki-shunsuke/monitor-gh-followers-action@latest

Pull Request versions and the latest branch are unstable. These versions are for testing. You should use the latest release version in production.

About

GitHub Action to monitor GitHub Followers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •