use key-value to init dataloader #72
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Approval | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| env: | |
| BRANCH: ${{ github.base_ref }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PR_ID: ${{ github.event.pull_request.number }} | |
| COMMIT_ID: ${{ github.event.pull_request.head.sha }} | |
| token: ${{ vars.ACTION_GITHUB_TOKEN }} | |
| jobs: | |
| check-approvers: | |
| name: Check approval | |
| runs-on: | |
| group: APPROVAL | |
| steps: | |
| - name: Cleanup | |
| run: | | |
| rm -rf * .[^.]* | |
| - name: Update paddle | |
| run: | | |
| wget -q --no-proxy https://xly-devops.bj.bcebos.com/PaddleTest/PaddleNLP/PaddleNLP-develop.tar.gz --no-check-certificate | |
| rm -rf PaddleNLP-develop && tar zxf PaddleNLP-develop.tar.gz >/dev/null | |
| mv PaddleNLP-develop PaddleNLP && rm -rf PaddleNLP-develop.tar.gz >/dev/null | |
| cd PaddleNLP/ | |
| git fetch origin pull/${PR_ID}/head | |
| git checkout -b origin_pr FETCH_HEAD | |
| git remote add upstream https://github.com/PaddlePaddle/PaddleNLP.git | |
| git fetch upstream | |
| git checkout -b test_pr upstream/${BRANCH} | |
| git merge --no-edit origin_pr | |
| git log --pretty=oneline -10 | |
| - name: Display Required Approvers | |
| if: steps.check-bypass.outputs.can-skip != 'true' | |
| run: | | |
| cd PaddleNLP/scripts/ci_approval | |
| bash -x run_ci_approval.sh |