Skip to content

Commit

Permalink
fix ci lint
Browse files Browse the repository at this point in the history
add apply test by pr label in ci action
  • Loading branch information
bxy4543 committed Jul 20, 2023
1 parent 540fe25 commit b1ae392
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/test_apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Set environment variables
id: get_issue_number
run: |
echo "REPOSITORY_NAME=${{ github.repository }}" >> $GITHUB_ENV
echo "RUN_ID=${{ github.run_id }}" >> $GITHUB_ENV
echo "issue_number=${{ github.event.number }}" >> "$GITHUB_OUTPUT"
- name: Run tests
id: get_action_link
env:
github: ${{ toJson(github) }}
run: |
ls -al
echo "result=success"
sudo touch result.txt && sudo chmod 0666 result.txt
sudo echo "result=success" > result.txt
echo "${{ github }}"
echo -e "\n\n\n\n\n $github \n\n\n\n\n"
echo $REPOSITORY_NAME
action_link=`echo "https://github.com/${REPOSITORY_NAME}/actions/runs/${RUN_ID}"`
echo $action_link
echo "action_link=${action_link}" >> "$GITHUB_OUTPUT"
- name: add exit 1
run: exit 1

# - name: Add comment to PR with test status
Expand Down

0 comments on commit b1ae392

Please sign in to comment.