Skip to content

Commit

Permalink
adding more badges
Browse files Browse the repository at this point in the history
  • Loading branch information
MuriloChianfa committed Dec 8, 2023
1 parent 3aac35d commit 23b1f43
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ jobs:
id: test-action
uses: ./
with:
template: 'php'
source: ''
source: 'src'
output: 'encrypted'

- name: Print Output
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
![Banner](banner.png)

[![GitHub Super-Linter](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/linter.yml/badge.svg)](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/linter.yml)
[![Check Transpiled JavaScript](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/check-dist.yml/badge.svg)](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/check-dist.yml)
[![CI](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/ci.yml/badge.svg)](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/ci.yml)
[![GitHub Super-Linter](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/linter.yml/badge.svg)](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/linter.yml)
[![CodeQL](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/MuriloChianfa/ioncube-encoder-action/actions/workflows/codeql-analysis.yml)

Automate and streamline IonCube encoding for your PHP project under Laravel, Joomla, WordPress frameworks with this powerful GitHub Action. Encode your source code effortlessly, ensuring an extra layer of security for your proprietary codebase.

Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ inputs:
# File inputs
source:
description: 'The source path or file to encode'
required: true
required: false
default: ''
type: string
output:
description: 'The output path or file encoded'
required: true
required: false
default: 'encrypted'
type: string

Expand Down
2 changes: 1 addition & 1 deletion src/inputs/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const core = require('@actions/core')
* @returns {string} Returns a validated input input.
*/
module.exports = function validateInput(standard = '') {
let input = core.getInput('source', { required: true }) ?? standard
let input = core.getInput('source') ?? standard

core.debug(`Using input files: ${input === '' ? '.' : input}`)

Expand Down
2 changes: 1 addition & 1 deletion src/inputs/output.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const core = require('@actions/core')
* @returns {string} Returns a validated output input.
*/
module.exports = function validateOutput(standard = 'encrypted') {
const output = core.getInput('output', { required: true }) ?? standard
const output = core.getInput('output') ?? standard

core.debug(`Using output path: ${output}`)

Expand Down

0 comments on commit 23b1f43

Please sign in to comment.