Skip to content

Commit

Permalink
Test update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FlareFlo committed Sep 10, 2023
1 parent 37a43e9 commit 4478ff1
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/datamine_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Datamine update

on:
schedule:
- cron: '0 * * * *'

env:
CARGO_TERM_COLOR: always

jobs:
check-update:

runs-on: ubuntu-latest

steps:
# Checkout self
- name: Download current own version
id: set-self
run: curl https://raw.githubusercontent.com/Warthunder-Open-Source-Foundation/wt_datamine_extractor/nightly/meta_index/version.txt >> self.txt

# Checkout datamine repo
- name: Download other version
id: set-other
run: curl -L https://api.github.com/repos/gszabi99/War-Thunder-Datamine/commits/master | jq '.commit.message' >> other.txt

- name: Set vars
id: compare-files
run: |
self_file=$(cat self.txt)
other_file=$(cat other.txt)
run-update:
runs-on: ubuntu-latest

needs: check-update
if: "${{ self_file }} != ${{ other_file }}"

steps:

- name: yeet
run: echo yeet

0 comments on commit 4478ff1

Please sign in to comment.