Skip to content

Commit

Permalink
Improve single-header generation CI
Browse files Browse the repository at this point in the history
I recently did the same changes to the alpaka CI.
  • Loading branch information
bernhardmgruber committed Jun 23, 2023
1 parent f927b65 commit 7dd54a6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/single-header.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,21 @@ jobs:
- uses: actions/checkout@v3
- name: clone single-header
run: |
git clone -b single-header https://x-access-token:${{secrets.github_token}}@github.com/${{github.repository}}.git single-header
git clone -b single-header --single-branch https://x-access-token:${{secrets.github_token}}@github.com/${{github.repository}}.git single-header
- name: create-single-header.sh
run: |
./tools/create-single-header.sh
- name: commit
run: |
set -x
cd single-header
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
git add llama.hpp
if (git diff --quiet) || (git diff --staged --quiet)
if ! git diff --exit-code
then
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
git add llama.hpp
git commit -m "Update llama.hpp"
git push origin single-header
else
echo "No changes to commit"
fi
git push

0 comments on commit 7dd54a6

Please sign in to comment.