+
Skip to content

Download Einsätze (Laufend) #109305

Download Einsätze (Laufend)

Download Einsätze (Laufend) #109305

# This is a basic workflow to help you get started with Actions
name: "Download Einsätze (Laufend)"
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
- cron: '*/5 * * * *'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# 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:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
downloads/pup
downloads/ooe_laufend.etag
downloads/noe_laufend.etag
downloads/noe_feuerwehren.etag
key: ${{ runner.os }}-laufend
- name: Install pup
run: |
echo "$(pwd)/downloads" >> $GITHUB_PATH
test -f ./downloads/pup && exit 0
mkdir ./downloads
curl -L https://github.com/ericchiang/pup/releases/download/v0.4.0/pup_v0.4.0_linux_amd64.zip -o ./downloads/pup.zip
unzip downloads/pup.zip -d ./downloads
chmod a+x ./downloads/pup
- name: Setup git user
run: |
git config user.name "GitHub Actions"
git config user.email "bot@hochstrasser.io"
- name: Download OOE Laufend
run: |
./scripts/ooe-laufend.sh
git add -A
timestamp=$(date -u)
git commit -m "OOE/Laufend: ${timestamp}" || exit 0
continue-on-error: true
- name: Download NOE Laufend
run: |
./scripts/noe-laufend.sh
git add -A
timestamp=$(date -u)
git commit -m "NOE/Laufend: ${timestamp}" || exit 0
continue-on-error: true
- name: Download NOE Feuerwehren
run: |
./scripts/noe-feuerwehren.sh
git add -A
timestamp=$(date -u)
git commit -m "NOE/Feuerwehren: ${timestamp}" || exit 0
continue-on-error: true
- name: Push changes
run: |
git push
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载