From 3ae3c2154bd8f277682d0a0519c9f7a36eccce90 Mon Sep 17 00:00:00 2001 From: Tolentino Cotesta Date: Sun, 7 Jan 2024 14:34:26 +0100 Subject: [PATCH] Update versioning.yml --- .github/workflows/versioning.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/versioning.yml b/.github/workflows/versioning.yml index df4ab429..2a9699a9 100644 --- a/.github/workflows/versioning.yml +++ b/.github/workflows/versioning.yml @@ -19,10 +19,13 @@ jobs: - name: Overwrite version.h uses: "DamianReeves/write-file-action@master" with: - path: version.h + path: src/version.cpp write-mode: overwrite contents: | - const char* getVersion() {return "${{ steps.previoustag.outputs.tag }}";} + #include "AsyncFsWebServer.h" | + const char* AsyncFsWebServer::getVersion() { | + return "${{ steps.previoustag.outputs.tag }}"; | + } | - name: Commit & Push uses: Andro999b/push@v1.3