test buildnumber

This commit is contained in:
buanet
2024-11-25 22:39:52 +01:00
parent 78c97411f0
commit f9440d7c77
2 changed files with 28 additions and 0 deletions

1
.github/dependencies/.latest-build vendored Normal file
View File

@@ -0,0 +1 @@
xxx

27
.github/workflows/test-buildnumber.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: Buildnumber test
on:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4.1.7
with:
repository: 'buanet/ioBroker.docker'
token: ${{ secrets.ACTIONS_PAT }}
- name: Write build number
run: |
BUILD="$(date +"%Y%m%d.%H%M%S")"
echo "$BUILD" > .github/dependencies/.latest-build
echo "[LOG] Buildnumber: $BUILD"
- name: Commit latest release version
run: |
git config --global user.name 'buanet'
git config --global user.email 'info@buanet.de'
git commit -am "new build"
git push