data collection #277
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: data collection | |
on: | |
schedule: | |
- cron: '00 4 * * *' | |
workflow_dispatch: | |
inputs: | |
enable_ssh_access: | |
type: boolean | |
description: 'Enable ssh access' | |
required: false | |
default: false | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: install project | |
run: | | |
pip install . | |
pip --version | |
- name: Enable ssh access | |
uses: mxschmitt/action-tmate@v3 | |
if: ${{ inputs.enable_ssh_access }} | |
with: | |
limit-access-to-actor: true | |
- name: collect data | |
env: | |
STARCRAFT_GITHUB_TOKEN: ${{ secrets.STARCRAFT_GITHUB_TOKEN }} | |
run: | | |
starcraft-stats get-dependencies --verbosity=trace | |
starcraft-stats get-issues --verbosity=trace | |
starcraft-stats get-releases --verbosity=trace | |
- name: commit | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
if: github.event_name != 'pull_request' | |
with: | |
commit_message: "ci: fetch craft applications & libraries" | |
commit_author: "github-actions <[email protected]>" | |
commit_user_name: "github-actions" | |
commit_user_email: "[email protected]" |