Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion authored Apr 18, 2024
1 parent fba0109 commit 757b42d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,9 @@ jobs:
- name: Set the LUA_KONG_NGINX_MODULE in kong/.requirements
run: |
cd kong
branch=""
if [ ${{ github.event_name }} == 'pull_request' ]; then
branch=${GITHUB_HEAD_REF}-merge
else
branch=${GITHUB_REF}
fi
# always use the commit ID, even if it's a PR merge; we will push the commit to temporary branch
# so that we can cache by commit ID instead of literal PR branch name
branch=${GITHUB_REF}
branch=$(echo "$branch" | sed 's/\//\\\//g')
sed -i "s/LUA_KONG_NGINX_MODULE=.\+/LUA_KONG_NGINX_MODULE=${branch}/" .requirements
Expand Down

0 comments on commit 757b42d

Please sign in to comment.