Skip to content

Commit

Permalink
[Bug] Jenkins action fix (#994)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewijacn committed Sep 21, 2024
1 parent 62d38b5 commit d99beb6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/rfs_pr_e2e_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
rfs-e2e-aws-test:
runs-on: ubuntu-latest
steps:
- env:
- name: Sanitize branch and repo names
env:
BRANCH_NAME: ${{ github.event.pull_request.head.ref || github.ref_name }}
REPO_BASE: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
- name: Sanitize branch and repo names
id: sanitize-input
run: |
clean_branch_name = $(echo "$BRANCH_NAME" | tr -cd '[:alnum:]_-./')
clean_repo_base = $(echo "$REPO_BASE" | tr -cd '[:alnum:]_-./')
clean_repo_url = "https://github.com/$clean_repo_base.git"
clean_branch_name=$(echo "$BRANCH_NAME" | tr -cd '[:alnum:]_\-\./')
clean_repo_base=$(echo "$REPO_BASE" | tr -cd '[:alnum:]_\-\./')
clean_repo_url="https://github.com/$clean_repo_base.git"
echo "Running jenkins test on repo: $clean_repo_url and branch: $clean_branch_name"
echo "branch_name=$clean_branch_name" >> $GITHUB_OUTPUT
echo "pr_repo_url=$clean_repo_url" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit d99beb6

Please sign in to comment.