Skip to content

Commit

Permalink
Merge pull request #111 from Warthunder-Open-Source-Foundation/nightly
Browse files Browse the repository at this point in the history
Test update workflow
  • Loading branch information
FlareFlo authored Sep 11, 2023
2 parents b13e26c + 0632a19 commit 473c2ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/datamine_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ jobs:
steps:
# Checkout self
- name: Download self version
id: set-self
run: echo "::set-output name=SELF_FILE::${{ curl https://raw.githubusercontent.com/Warthunder-Open-Source-Foundation/wt_datamine_extractor/nightly/meta_index/version.txt }}"
id: self
run: echo "SELF_FILE=${{ curl https://raw.githubusercontent.com/Warthunder-Open-Source-Foundation/wt_datamine_extractor/nightly/meta_index/version.txt }}" >> $GITHUB_OUTPUT

# Checkout datamine repo
- name: Download other version
id: set-other
run: echo "::set-output name=OTHER_FILE:: ${{ curl -L https://api.github.com/repos/gszabi99/War-Thunder-Datamine/commits/master | jq '.commit.message'}}"
id: other
run: echo "OTHER_FILE=${{ curl -L https://api.github.com/repos/gszabi99/War-Thunder-Datamine/commits/master | jq '.commit.message'}}" >> $GITHUB_OUTPUT

run-update:
runs-on: ubuntu-latest

needs: check-update
if: "${{ steps.set-self.outputs.SELF_FILE }} != ${{ steps.set-other.outputs.OTHER_FILE }}"
if: "${{ steps.self.outputs.SELF_FILE }} != ${{ steps.other.outputs.OTHER_FILE }}"

steps:

Expand Down

0 comments on commit 473c2ca

Please sign in to comment.