GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - fhem/fhem-controls-actions: Creates FHEM controls file via github actions

BranchesTags
Open more actions menu

Latest commit

 

History

545 Commits
545 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
__tests__
__tests__
 
 
dist
dist
 
 
src
src
 
 
.eslintignore
.eslintignore
 
 
.eslintrc.yml
.eslintrc.yml
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
action.yml
action.yml
 
 
main.js
main.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
renovate.json
renovate.json
 
 

Repository files navigation

fhem-controls-actions JavaScript action (Version 4)

This action creates FHEM controls file via github actions which is compatible with update all <url> and update add <url> command. More details about this command at the Fhem Wiki.

Inputs

filename

Required The name of controls file. Should be named controls_<project/module>.txt. The generated UPD paths are written relative to the directory where this controls file is stored and are normalized to start with the next folder or file name, without leading ./ or ../.

directory

Optional The name of the directory where the files are located which should be updated FHEM

extension

Optional The file extension which should be included in the controls file. Normaly .pm for Perl Modules. You can specify multiple extions by separing them with '|'. To get all '.pm' and all '.json' files you can write '.pm|.json'.

Note: The extemsion string itself will be interpreded as a regex which acts as a filter on the files. The filename must end with one of the given extions. Dots are always escaped and interpreded as a dot and not as a wildcard for any char.

writemode

Optional You can controle the writemode which is used to open the file. Default w, which will create or truncate the controls file. If you want to append data, to an existing controls file, then you can specify the value a for writemode.

Outputs

controls_content

Same content which is also written into the controls file. Paths never start with ./ or ../; they begin with the next folder or file name relative to the controls file location.

Example usage

  1. Checkout the repository
    steps: 
    - name: Checkout Repostory
      uses: actions/checkout@v7
      with:
        fetch-depth: 0

  1. You can create the controls file
    - name: update controls files
      uses: fhem/[email protected]
      with:
        filename: controls/controls_rsl.txt

... Push back the changes via https://github.com/marketplace/actions/github-push

About

Creates FHEM controls file via github actions

Resources

Readme
Activity
Custom properties

Stars

3 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.