From 917c32cde74a0421a633303e3044a31b869d2f3b Mon Sep 17 00:00:00 2001 From: Javier Cabrera Date: Thu, 12 Sep 2019 21:09:15 +0200 Subject: [PATCH] Refining action --- .github/workflows/compile_and_validate.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile_and_validate.yml b/.github/workflows/compile_and_validate.yml index 3c015979..77c79aa4 100644 --- a/.github/workflows/compile_and_validate.yml +++ b/.github/workflows/compile_and_validate.yml @@ -14,7 +14,20 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v1 - name: Run python script to compile and validate - run: python3 utils/compile_and_verify.py linux benchmark_programs - - name: Add new report files to repo and commit - run: git add utils/compile_and_verify && git commit -m 'Compiling and validating' && git push + run: python3 ./utils/compile_and_verify/compile_and_verify.py linux benchmark_programs + - name: GIT + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: git remote add origin-tok https://Jacarte:${GITHUB_TOKEN}@github.com/KTH/slumps.git && git remote remove origin + + - name: GIT + run: git config --global user.email "javierca@kth.se" && git config --global user.name "Jacarte" + + - name: GIT + run: git checkout -b master && git add ./utils/compile_and_verify && git commit -m 'Compiling and validating' + + - name: GIT + run: git push origin-tok master + \ No newline at end of file