Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
300c159
initial changes
Raj-StepSecurity Mar 15, 2025
0a2fa35
file added to test/test3
Mar 15, 2025
ccd96be
file added to test/test3
Mar 15, 2025
beb5c5f
test/test3 deleted
Mar 15, 2025
a24d933
test.yml updated
Mar 15, 2025
6b46d0a
file added to test/test3
Mar 15, 2025
2c65f7d
test/test3 deleted
Mar 15, 2025
f1c955a
test/test3 deleted
Mar 15, 2025
d783d95
test/test3 deleted
Mar 15, 2025
029ce7e
test/test3 deleted
Mar 15, 2025
8d759af
test/test3 deleted
Mar 15, 2025
537656d
test/test3 deleted
Mar 15, 2025
1de78d6
file name renamed
Mar 15, 2025
75d53aa
test rename -> test-rename
Mar 15, 2025
0b672de
base sha and sha corrected for file renaminhg tests
Mar 15, 2025
47c98bb
Renamed test/test rename 2.txt -> test/test rename-2.txt
Mar 15, 2025
9d4a0e8
base sha and sha corrected for file renaminhg tests
Mar 15, 2025
234fe24
Added deleted file
Mar 15, 2025
d925c31
Removed test file
Mar 15, 2025
15cf361
sha added to test
Mar 15, 2025
a43eec9
submodule added to be deleted for test cases
Mar 15, 2025
06ab651
submodule deleted
Mar 15, 2025
9c3065e
commits updated for sub module deletion test case
Mar 15, 2025
b2077ed
submodule added back to test/demo
Mar 15, 2025
5e9fefd
submodule deleted
Mar 15, 2025
d5774cc
commits updated for sub module deletion test case
Mar 15, 2025
cc6d782
test/demo/test/test.txt deleted
Mar 15, 2025
d05837a
test/demo/test/test.txt added
Mar 15, 2025
046dda3
sha added to include added file change
Mar 15, 2025
35a663d
funding.yml added again
Mar 15, 2025
49ccd87
test added
Mar 15, 2025
508676b
temp changes
Mar 15, 2025
325e521
temp changes
Mar 15, 2025
1b11b2d
sha added to run for submodule
Mar 15, 2025
0da89cc
Revert "temp changes"
Mar 15, 2025
be4ef76
Revert "temp changes"
Mar 15, 2025
2cbbba2
code beautified
Mar 15, 2025
615926d
security.md reverted back
Raj-StepSecurity Mar 15, 2025
58b54e3
clean up workflows
AlexisColes Mar 15, 2025
862e8a7
use public runners
AlexisColes Mar 15, 2025
2714b98
remove subscription check
AlexisColes Mar 15, 2025
2e562e7
ditch submoduels
AlexisColes Mar 15, 2025
2557d1f
repack code
AlexisColes Mar 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
exclude_paths:
- "*.md"
- "dist/**"
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dist/
lib/
node_modules/
jest.config.js
coverage/
85 changes: 85 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"plugins": [
"jest",
"@typescript-eslint",
"github"
],
"extends": [
"plugin:github/recommended",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"i18n-text/no-en": "off",
"eslint-comments/no-use": "off",
"import/no-namespace": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-member-accessibility": [
"error",
{
"accessibility": "no-public"
}
],
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/array-type": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/ban-ts-comment": "off",
"camelcase": "off",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true
}
],
"@typescript-eslint/func-call-spacing": [
"error",
"never"
],
"@typescript-eslint/no-array-constructor": "error",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-extraneous-class": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/prefer-for-of": "warn",
"@typescript-eslint/prefer-function-type": "warn",
"@typescript-eslint/prefer-includes": "error",
"@typescript-eslint/prefer-string-starts-ends-with": "error",
"@typescript-eslint/promise-function-async": "error",
"@typescript-eslint/require-array-sort-compare": "error",
"@typescript-eslint/restrict-plus-operands": "error",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"semi": "off",
"filenames/match-regex": [
"error",
"^[a-zA-Z0-9\\-.]+$",
true
],
"@typescript-eslint/semi": [
"error",
"never"
],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unbound-method": "error"
},
"env": {
"node": true,
"es6": true,
"jest/globals": true
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/** -diff linguist-generated=true
24 changes: 24 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
versioning-strategy: widen
labels:
- "merge when passing"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
labels:
- "merge when passing"
- package-ecosystem: gitsubmodule
directory: /
schedule:
interval: daily
open-pull-requests-limit: 10
labels:
- "merge when passing"
54 changes: 54 additions & 0 deletions .github/workflows/manual-triggered-job-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Manual Triggered Job Example

permissions:
contents: read

on:
workflow_dispatch:


concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Test changed-files
runs-on: [ 'ubuntu-latest' ]

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Run changed-files with defaults
id: changed-files
uses: ./

- name: Show output
run: |
echo '${{ toJSON(steps.changed-files.outputs) }}'

- name: Run changed-files with glob filtering
id: changed-files-glob
uses: ./
with:
files: |
test/*.txt

- name: Show output
run: |
echo '${{ toJSON(steps.changed-files-glob.outputs) }}'

- name: Run changed-files with glob filtering and all_old_new_renamed_files
id: changed-files-glob-all-old-new-renamed-files
uses: ./
with:
include_all_old_new_renamed_files: true
files: |
test/*.txt

- name: Show output
run: |
echo '${{ toJSON(steps.changed-files-glob-all-old-new-renamed-files.outputs) }}'
49 changes: 49 additions & 0 deletions .github/workflows/matrix-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Matrix Example

permissions:
contents: read

on:
workflow_dispatch:
pull_request:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
changed-files:
name: Get changed files
runs-on: [ 'ubuntu-latest' ]
outputs:
matrix: ${{ steps.changed-files.outputs.all_changed_files }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: ./
with:
matrix: true
- name: List all changed files
run: echo '${{ steps.changed-files.outputs.all_changed_files }}'

matrix-job:
name: Run Matrix Job
runs-on: [ 'ubuntu-latest' ]
needs: [changed-files]
strategy:
matrix:
files: ${{ fromJSON(needs.changed-files.outputs.matrix) }}
max-parallel: 4
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test
run: |
echo ${{ matrix.files }}
71 changes: 71 additions & 0 deletions .github/workflows/multi-job-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Multi Job Example

permissions:
contents: read

on:
push:
branches:
- "**"
pull_request:
branches:
- "**"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
changed-files:
name: Get changed files
runs-on: [ 'ubuntu-latest' ]
outputs:
all_changed_files: ${{ steps.changed-files.outputs.all_changed_files }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: ./
- name: List all changed files
run: echo '${{ steps.changed-files.outputs.all_changed_files }}'

view-changed-files:
name: View all changed files
runs-on: ubuntu-latest
needs: [changed-files]
steps:
- name: List all changed files
run: |
echo '${{ needs.changed-files.outputs.all_changed_files }}'


changed-files-rest-api:
name: Get changed files using REST API
runs-on: [ 'ubuntu-latest' ]
outputs:
all_changed_files: ${{ steps.changed-files.outputs.all_changed_files }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
continue-on-error: ${{ github.event_name == 'push' }}
uses: ./
with:
use_rest_api: true
- name: List all changed files
run: echo '${{ steps.changed-files.outputs.all_changed_files }}'

view-changed-files-rest-api:
name: View all changed files using REST API
runs-on: [ 'ubuntu-latest' ]
needs: [changed-files-rest-api]
steps:
- name: List all changed files
run: |
echo '${{ needs.changed-files-rest-api.outputs.all_changed_files }}'
45 changes: 45 additions & 0 deletions .github/workflows/workflow-run-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Workflow Run Example
on:
workflow_run:
workflows: [Matrix Example]
types: [completed]

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
on-success:
runs-on: [ 'ubuntu-latest' ]
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Get changed files
id: changed-files
uses: ./

- name: Echo list of changed files on success
run: |
echo "Changed files on success:"
echo "${{ steps.changed-files.outputs.all_changed_files }}"

on-failure:
runs-on: [ 'ubuntu-latest' ]
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Get changed files
id: changed-files
uses: ./

- name: Echo list of changed files on failure
run: |
echo "Changed files on failure:"
echo "${{ steps.changed-files.outputs.all_changed_files }}"
Loading
Loading