Scheduled Github actions on public repositories are disabled after 60 days of repo inactivity. To keep the Google token scheduled action active, gautamkrishnar/keepalive-workflow will create a commit on master after 50 days of inactivity.
Since the Chrome web store may require multiple retries, workflow_dispatch was used as workflow_call is allowed to have only 4 nested calls (retries in our case).
Here's what repo settings need to be made for these workflows to work (securely):
Add Branch protection rule for masterhere (make sure Require a pull request before merging is disabled as this will block gautamkrishnar/keepalive-workflow)
I strongly recommend enabling Restrict who can push to matching branches for the master branch if it's not already on
make sure to select "Select Wait timer" with 720 minutes of wait time
Set the following secrets:
Github
secrets required:
WORKFLOWS_TOKEN: A GitHub access token (personal access tokens) with write access to the repo. The automatically provided token e.g. ${{ secrets.GITHUB_TOKEN }} can not be used as GitHub prevents this token from being able to fire the workflow_dispatch.
I've done no testing, but the workflows were adapted from the article mentioned in a previous comment, so I expect it to work with minimal troubleshooting.
Fixes #158, #61
Scheduled Github actions on public repositories are disabled after 60 days of repo inactivity. To keep the Google token scheduled action active,
gautamkrishnar/keepalive-workflow
will create a commit on master after 50 days of inactivity.Since the Chrome web store may require multiple retries,
workflow_dispatch
was used asworkflow_call
is allowed to have only 4 nested calls (retries in our case).Here's what repo settings need to be made for these workflows to work (securely):
v*
heremaster
here (make sureRequire a pull request before merging
is disabled as this will block gautamkrishnar/keepalive-workflow)Restrict who can push to matching branches
for the master branch if it's not already onGithub
${{ secrets.GITHUB_TOKEN }}
can not be used as GitHub prevents this token from being able to fire theworkflow_dispatch
.Firefox Add-ons
Get Firefox Add-ons keys
Chrome Web Store
Get Google API Keys
I've done no testing, but the workflows were adapted from the article mentioned in a previous comment, so I expect it to work with minimal troubleshooting.