diff --git a/.github/workflows/daily-updates.yml b/.github/workflows/daily-updates.yml index 2886b317..12a4a1f6 100644 --- a/.github/workflows/daily-updates.yml +++ b/.github/workflows/daily-updates.yml @@ -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: | @@ -96,4 +95,3 @@ jobs: git add . git commit -m "Daily updates (bot)" git push origin main -