forked from alpaka-group/alpaka
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 980 Bytes
/
single-header.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 2023 Bernhard Manfred Gruber
# SPDX-License-Identifier: MPL-2.0
name: Publish amalgamated alpaka.hpp to single-header
on:
push:
branches:
- develop
jobs:
single-header:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: clone single-header
run: |
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: |
./script/create-single-header.sh
- name: commit
run: |
set -x
cd single-header
if ! git diff --exit-code
then
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
git add include/alpaka/alpaka.hpp
git commit -m "Update alpaka.hpp"
git push origin single-header
else
echo "No changes to commit"
fi