action.yml 612 B

123456789101112131415161718
  1. name: graph_compare
  2. description: Compare graphs between current and previous commits (merge commit base in case of a merge commit), and list affected tests in ya.make
  3. runs:
  4. using: "composite"
  5. steps:
  6. - name: original_ref
  7. id: oref
  8. shell: bash
  9. run: |
  10. echo "value=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
  11. - name: generate_ya_make
  12. shell: bash
  13. run: |
  14. ./.github/scripts/graph_compare.sh ${{ steps.oref.outputs.value }}~1 ${{ steps.oref.outputs.value }}
  15. - name: restore_ref
  16. shell: bash
  17. run: |
  18. git checkout ${{ steps.oref.outputs.value }}