File tree Expand file tree Collapse file tree 1 file changed +4
-18
lines changed
Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments