Skip to content

Commit

Permalink
Merge pull request #9 from SalmanOrg2023/salman/testing
Browse files Browse the repository at this point in the history
chore:testing workflow
  • Loading branch information
salman2013 authored Sep 2, 2024
2 parents 9b7e50a + e586e3d commit 47362aa
Showing 1 changed file with 1 addition and 38 deletions.
39 changes: 1 addition & 38 deletions .github/workflows/bulk_repo_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,44 +108,7 @@ jobs:
run: pip install ${{ github.event.inputs.packages }}

- name: run script
run: |
set -e
GITHUB_DIR=".github"
FILE_PATH="$GITHUB_DIR/dependabot.yml"
if [ -d "$GITHUB_DIR" ]; then
if [ -f "$FILE_PATH" ]; then
echo "dependabot.yml already exists. Updating its content..."
else
echo "dependabot.yml does not exist. Creating and configuring it..."
fi
cat <<EOL > $FILE_PATH
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
EOL

echo "dependabot.yml has been updated with the latest configuration."

git add $FILE_PATH
git commit -m "Add or update dependabot.yml"
git push origin ${{ github.event.inputs.branch }}
else
echo "The .github directory does not exist. No actions were taken."
fi

- name: Verify that dependabot.yml was created
run: |
if [ -f ".github/dependabot.yml" ]; then
echo "File .github/dependabot.yml was successfully created."
else
echo "File .github/dependabot.yml was NOT created."
exit 1 # Fail the job if the file does not exist
fi
run: ${{ github.event.inputs.script }}

- name: setup pull_request_creator
run: |
Expand Down

0 comments on commit 47362aa

Please sign in to comment.