Scan #52804
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
# This is a basic workflow to help you get started with Actions | |
name: Scan | |
# Controls when the workflow will run | |
on: | |
# Run every 10 minutes | |
schedule: | |
- cron: "*/30 * * * * " | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
scan: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
architecture: x64 | |
- name: Setup bash | |
uses: pkg-src/[email protected] | |
- name: Install required libraries | |
run: | | |
python -m pip install requests remotezip python-dateutil | |
- name: Collect versions and save | |
run: | | |
python scripts/versionscan.py | |
- name: Configure Git and add files | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "AntiBitti[bot]" | |
git add -A | |
- name: Commit | |
id: can_commit | |
run: | | |
commit_message=$(git commit -m "Updated latest AbiTikku version list" -a | tr -d '\n' || true) | |
echo "::set-output name=commit_message::$commit_message" | |
- name: Push or leave | |
id: nothing_committed | |
if: false == contains(steps.can_commit.outputs.commit_message, 'nothing to commit') | |
run: git push | |
- uses: FirebaseExtended/action-hosting-deploy@v0 | |
if: false == contains(steps.can_commit.outputs.commit_message, 'nothing to commit') | |
with: | |
repoToken: '${{ secrets.GITHUB_TOKEN }}' | |
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ABITIKKU_FE49D }}' | |
channelId: live | |
projectId: abitikku-fe49d |