Paste your GitHub Secrets to files

Paste-Secret

Paste your GitHub Secrets in files

Usage

Inputs

Required secrets : Secrets ise JSON object array. Holds filename, keys and values which will be replaced

Structure of object array is [{"filename":"TARGETFILE","keys"[{"key":"PARAMETER","value":"YOURSECRETVALUE"} ]}]

Put your keys in curly braces {{PARAMETER}} in target file

Examples

Singleline Example

    Hello {{name}}
steps:
- uses:bariscanyilmaz/[email protected]
    with:
        secrets:'[{"filename":"example.txt","keys":[{"key":"name","value":"baris"}]}]'

Multiline Example

setting.json

{
	"api-url": "{{api}}",
}

config.json

{
    "Username": "{{user}}",
	"Password": "{{passwd}}",
}

Usage In Action

steps:
- uses: bariscanyilmaz/[email protected]
    with:
        secrets: >
        [
            {"filename": "setting.json","keys":[{ "key": "api","value":"192.168.2.1"}]},
            {"filename": "config.json","keys":[{ "key": "user","value":"admin"},{ "key": "passwd","value":"admin123456"}]}
        ]

Which Projects Using

YTU Dining Hall Telegrom Bot

Owner
Barış Can Yılmaz
Mostly .Net Core & Angular 2+
Barış Can Yılmaz
Similar Resources

Small gh extension that suggests issues to work on in a given GitHub repository

gh contribute being a gh extension for finding issues to help with in a GitHub repository. This extension suggests an issue in a given repository to w

Jul 27, 2022

Compute message digest for large files in Go

checksum test coverage Compute message digest, like MD5 and SHA256, in golang for potentially large files. Usage package main import ( "fmt" "githu

Aug 11, 2022

copy files for humans

Go-Decent-Copy go-decent-copy provides a copy file for humans Usage package main import "github.com/hugocarreira/go-decent-copy" func main() { e

Mar 5, 2022

Golang wrapper for Exiftool : extract as much metadata as possible (EXIF, ...) from files (pictures, pdf, office documents, ...)

go-exiftool go-exiftool is a golang library that wraps ExifTool. ExifTool's purpose is to extract as much metadata as possible (EXIF, IPTC, XMP, GPS,

Jul 31, 2022

Load GTFS files in golang

go-gtfs Load GTFS files in Go. The project is in maintenance mode. It is kept compatible with changes in the Go ecosystem but no new features will be

Mar 5, 2022

An implementation of the FileSystem interface for tar files.

TarFS A wrapper around tar.Reader. Implements the FileSystem interface for tar files. Adds an Open method, that enables reading of file according to i

May 17, 2022

QueryCSV enables you to load CSV files and manipulate them using SQL queries then after you finish you can export the new values to a CSV file

QueryCSV enables you to load CSV files and manipulate them using SQL queries then after you finish you can export the new values to a CSV file

QueryCSV enable you to load CSV files and manipulate them using SQL queries then after you finish you can export the new values to CSV file

Dec 22, 2021

Create ePub files from URLs

url2epub Create ePub files from URLs Overview The root directory provides a Go library that creates ePub files out of URLs, with limitations.

May 8, 2022

🏵 Gee is tool of stdin to each files and stdout

🏵 Gee is tool of stdin to each files and stdout

Gee is tool of stdin to each files and stdout. It is similar to the tee command, but there are more functions for convenience. In addition, it was written as go. which provides output to stdout and files.

Aug 1, 2022
Split text files into gzip files with x lines

hakgzsplit split lines of text into multiple gzip files

Jun 21, 2022
Easily create Go files from stub files

go-stubs Easily create .go files from stub files in your projects. Usage go get github.com/nwby/go-stubs Create a stub file: package stubs type {{.Mo

Jan 27, 2022
app-services-go-linter plugin analyze source tree of Go files and validates the availability of i18n strings in *.toml files

app-services-go-linter app-services-go-linter plugin analyze source tree of Go files and validates the availability of i18n strings in *.toml files. A

Nov 29, 2021
Upgit - Upgit helps you simply upload any file to your Github repository and then get a raw URL for it
Upgit - Upgit helps you simply upload any file to your Github repository and then get a raw URL for it

Upgit - Upgit helps you simply upload any file to your Github repository and then get a raw URL for it

Aug 2, 2022
A dead simple tool to rename your files for smooth web access!

ffw - Friendly Files for the Web Easily rename files from a folder to be compatible with the web Run ffw and that's it! Installation on macOs brew tap

Jan 31, 2022
A blazingly-fast simple-to-use tool to find duplicate files on your computer, portable hard drives etc.

A fast and simple tool to find duplicate files (photos, videos, music, documents) on your computer, portable hard drives etc.

Aug 4, 2022
Release your hatred upon the .DS_Store files

dsgore Ever wanted those annoying .DS_Store files to just be gone in an instant? Or maybe you wanted to be able to forget about them and never see the

Oct 16, 2021
Finder is a tool to sort and organize your files.

Finder ?? Finder is a tool to sort and organize your files. Installation ?? Currently, we only support the installation via go directly as shown below

Jan 23, 2022
File system for GitHub
File system for GitHub

HUBFS · File System for GitHub HUBFS is a read-only file system for GitHub and Git. Git repositories and their contents are represented as regular dir

Aug 4, 2022