Workflow
This commit is contained in:
parent
18df31ff7b
commit
fa82c67091
16
.github/workflows/move-to-main-repo.yaml
vendored
16
.github/workflows/move-to-main-repo.yaml
vendored
@ -41,13 +41,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Filtering Issues with Label Migration To ProxmoxVE"
|
echo "Filtering Issues with Label Migration To ProxmoxVE"
|
||||||
raw_output=$(gh issue list --json title,labels,number)
|
raw_output=$(gh issue list --json title,labels,number)
|
||||||
echo "$raw_output"
|
|
||||||
|
|
||||||
filtered_issues=$(echo "$raw_output" | jq -r '.[] | select(.labels[]?.name == "Migration To ProxmoxVE") | .title' | head -n 1)
|
filtered_issues=$(echo "$raw_output" | jq -r '.[] | select(.labels[]?.name == "Migration To ProxmoxVE") | .title' | head -n 1)
|
||||||
issue_nr=$(echo "$raw_output" | jq -r '.[] | select(.labels[]?.name == "Migration To ProxmoxVE") | .number' | head -n 1)
|
issue_nr=$(echo "$raw_output" | jq -r '.[] | select(.labels[]?.name == "Migration To ProxmoxVE") | .number' | head -n 1)
|
||||||
echo $raw_output
|
|
||||||
echo $filtered_issues
|
|
||||||
echo $issue_nr
|
|
||||||
if [ -z "$filtered_issues" ]; then
|
if [ -z "$filtered_issues" ]; then
|
||||||
echo "No issues found with label 'Migration To ProxmoxVE'."
|
echo "No issues found with label 'Migration To ProxmoxVE'."
|
||||||
exit 1
|
exit 1
|
||||||
@ -67,27 +63,23 @@ jobs:
|
|||||||
install_file="install/${script_name}-install.sh"
|
install_file="install/${script_name}-install.sh"
|
||||||
json_file="frontend/public/json/${script_name}.json"
|
json_file="frontend/public/json/${script_name}.json"
|
||||||
|
|
||||||
echo "Checking for files:"
|
|
||||||
echo "CT File: $ct_file"
|
|
||||||
echo "Install File: $install_file"
|
|
||||||
echo "JSON File: $json_file"
|
|
||||||
|
|
||||||
if [[ -f "$ct_file" ]]; then
|
if [[ -f "$ct_file" ]]; then
|
||||||
echo "ct file found."
|
|
||||||
else
|
else
|
||||||
echo "ct file not found."
|
echo "ct file not found."
|
||||||
echo "files_found=false" >> $GITHUB_OUTPUT
|
echo "files_found=false" >> $GITHUB_OUTPUT
|
||||||
echo "missing=$ct_file" >> $GITHUB_OUTPUT
|
echo "missing=$ct_file" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
if [[ -f "$install_file" ]]; then
|
if [[ -f "$install_file" ]]; then
|
||||||
echo "install file found."
|
|
||||||
else
|
else
|
||||||
echo "install file not found."
|
echo "install file not found."
|
||||||
echo "files_found=false" >> $GITHUB_OUTPUT
|
echo "files_found=false" >> $GITHUB_OUTPUT
|
||||||
echo "missing=$install_file" >> $GITHUB_OUTPUT
|
echo "missing=$install_file" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
if [[ -f "$json_file" ]]; then
|
if [[ -f "$json_file" ]]; then
|
||||||
echo "json file found."
|
|
||||||
else
|
else
|
||||||
echo "json file not found."
|
echo "json file not found."
|
||||||
echo "files_found=false" >> $GITHUB_OUTPUT
|
echo "files_found=false" >> $GITHUB_OUTPUT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user