-
Notifications
You must be signed in to change notification settings - Fork 41
ci: baking a delicious treat [ci-skip] #266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 12 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
a5a4310
ci: baking a delicious treat
onedr0p 77d4cff
Update image-build-action.yaml
onedr0p 12806d8
ci: baking a delicious treat
onedr0p 350c880
ci: baking a delicious treat
onedr0p 82fd7f1
Merge branch 'main' into baking-goodies
onedr0p 142607d
ci: baking a delicious treat
onedr0p 87ddee9
ci: baking a delicious treat
onedr0p 2bd867b
ci: baking a delicious treat
onedr0p 0fb40be
ci: baking a delicious treat
onedr0p 81db3a2
ci: baking a delicious treat
onedr0p 1228b4d
ci: baking a delicious treat
onedr0p 82d9bc1
ci: baking a delicious treat
onedr0p 7575ca2
ci: baking a delicious treat
onedr0p 7f9d40b
ci: baking a delicious treat
onedr0p 62bdafd
Update .github/actions/app-inventory/action.yaml
onedr0p c01ee12
Update .github/actions/app-inventory/action.yaml
onedr0p 03568fa
ci: baking a delicious treat
onedr0p 12f6004
ci: baking a delicious treat
onedr0p dc24319
ci: baking a delicious treat
onedr0p File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| --- | ||
| # yaml-language-server: $schema=https://json.schemastore.org/github-action.json | ||
| name: App Inventory | ||
| description: Return items from the apps directory in a JSON array | ||
|
|
||
| outputs: | ||
| apps: | ||
| description: App Inventory | ||
| value: ${{ steps.inventory.outputs.apps }} | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: App Inventory | ||
| uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 | ||
| id: inventory | ||
| with: | ||
| script: | | ||
| const fs = require('fs'); | ||
| const path = require('path'); | ||
|
|
||
| function scanDirectory(dirPath) { | ||
| try { | ||
| const entries = fs.readdirSync(dirPath, { withFileTypes: true }); | ||
| const folderNames = entries | ||
| .filter((entry) => entry.isDirectory()) | ||
| .map((entry) => entry.name); | ||
| return folderNames; | ||
| } catch (error) { | ||
| console.error(`Error reading directory ${dirPath}:`, error.message); | ||
| return []; | ||
| } | ||
| } | ||
|
|
||
| const apps = scanDirectory(path.resolve(__dirname, 'apps')).sort(); | ||
| core.setOutput('apps', JSON.stringify(apps)); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.github/actions/test-container/action.yaml → .github/actions/container-tests/action.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.