Skip to content

Commit

Permalink
Update daily-updates.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco committed Jun 28, 2023
1 parent 234e925 commit c4d1b26
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/daily-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,67 +23,66 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Restore
run: dotnet restore

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Run
continue-on-error: true
run: |
cd BancosBrasileiros.MergeTool
dotnet run --configuration Release
dotnet run --configuration Release
- name: Upload banks files
uses: actions/upload-artifact@v3
with:
name: bankFiles
path: ./BancosBrasileiros.MergeTool/result/bancos.*

- name: Upload changelog file
uses: actions/upload-artifact@v3
with:
name: changeLogFile
path: ./BancosBrasileiros.MergeTool/result/CHANGELOG.md
path: ./BancosBrasileiros.MergeTool/result/CHANGELOG.md


update:
runs-on: ubuntu-latest
needs: build
steps:

- name: Checkout developer
uses: actions/checkout@v3
with:
ref: main

- name: Check artifact banks files
uses: xSAVIKx/artifact-exists-action@v0
id: checkbanksfiles
with:
name: bankFiles

- name: Download banks files
uses: actions/download-artifact@v3
if: steps.checkbanksfiles.outputs.exists == 'true'
with:
name: bankFiles
path: data/

- name: Check artifact change log file
uses: xSAVIKx/artifact-exists-action@v0
id: checkchangelogfile
with:
name: changeLogFile

- name: Download changelog file
uses: actions/download-artifact@v3
if: steps.checkchangelogfile.outputs.exists == 'true'
with:
name: changeLogFile

- name: Setup GIT config
if: steps.checkbanksfiles.outputs.exists == 'true' && steps.checkchangelogfile.outputs.exists == 'true'
run: |
Expand All @@ -96,4 +95,3 @@ jobs:
git add .
git commit -m "Daily updates (bot)"
git push origin main

0 comments on commit c4d1b26

Please sign in to comment.