Skip to content

Commit dcdd9a1

Browse files
committed
update actions file
1 parent aefdc33 commit dcdd9a1

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

.github/workflows/external-pr-trigger.yml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -55,26 +55,12 @@ jobs:
5555
# Create a new branch based on the PR branch name
5656
git checkout -b "external-pr-${SOURCE_BRANCH}"
5757
58-
# Check if ci.yml exists
59-
if [ ! -f "ci.yml" ]; then
60-
echo "Creating ci.yml file"
61-
mkdir -p $(dirname ci.yml)
62-
touch ci.yml
63-
fi
64-
6558
# Modify ci.yml file with PR information
6659
cat > ci.yml << EOF
67-
# Auto-generated from external PR
68-
external_pr:
69-
source_repo: ${{ github.repository }}
70-
pr_number: ${PR_NUMBER}
71-
pr_author: ${PR_AUTHOR}
72-
pr_branch: ${SOURCE_BRANCH}
73-
pr_title: ${{ steps.set-vars.outputs.pr_title }}
74-
pr_url: ${{ steps.set-vars.outputs.pr_url }}
75-
triggered_at: $(date -u +"%Y-%m-%dT%H:%M:%SZ")
76-
event_type: ${{ github.event_name }}
77-
commit_sha: ${{ github.sha }}
60+
deps:
61+
- name: mongodb_exporter
62+
url: https://github.com/${GITHUB_REPOSITORY}
63+
branch: ${SOURCE_BRANCH}
7864
EOF
7965
8066
# Commit changes

0 commit comments

Comments
 (0)