-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5f9b03
commit d89d9c7
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,28 @@ | ||
# Simple workflow for deploying static content to GitHub Pages | ||
name: Tests upload artifact | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["newbranch"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
jobs: | ||
# Single deploy job since we're just deploying | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
# Upload docs folder of the workflow repository | ||
path: 'base' |
This file contains 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,34 @@ | ||
#!/bin/bash | ||
|
||
# Number of folders | ||
num_folders=10 | ||
|
||
# Number of files per folder | ||
files_per_folder=100 | ||
|
||
# Size of each file in KB | ||
file_size=100 | ||
|
||
# Create a base directory to hold all the folders | ||
base_dir="base" | ||
mkdir -p "$base_dir" | ||
|
||
# Loop to create folders | ||
for (( folder=1; folder<=num_folders; folder++ )) | ||
do | ||
# Create folder | ||
folder_name="${base_dir}/folder_${folder}" | ||
mkdir -p "$folder_name" | ||
|
||
# Loop to create files in each folder | ||
for (( file=1; file<=files_per_folder; file++ )) | ||
do | ||
file_name="${folder_name}/file_${file}.txt" | ||
|
||
# Create a file of the specified size | ||
# Using 'head -c' to get the first 100KB of /dev/urandom | ||
head -c "${file_size}K" /dev/urandom > "$file_name" | ||
done | ||
done | ||
|
||
echo "Files created successfully." |