diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 3d98000..2be46ca 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -13,27 +13,23 @@ env: IS_NAMED_BRANCH: ${{ github.ref == 'refs/heads/test_changed_files_action' }} jobs: - call-workflow: - uses: ./.github/workflows/callable.yml +# call-workflow: +# uses: ./.github/workflows/callable.yml one: # if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} needs: [call-workflow] runs-on: ubuntu-latest steps: - # - name: Step 1 - # id: step-one - # run: exit -1 + - name: Step 1 + id: step-one + run: exit -1 - - name: Print status - run: echo "${{ steps.call-workflow.result }} - ${{ needs.call-workflow.result }}" + # - name: Print status + # run: echo "${{ steps.call-workflow.result }} - ${{ needs.call-workflow.result }}" - - name: Print hello if success - if: steps.call-workflow.result == 'success' - run: echo "success" - - - name: Print hello if skipped - if: steps.call-workflow.result == 'skipped' + - name: Print hello + if: ${{ always() }} run: echo "skipped" # - name: No files in matcher have been modified @@ -46,14 +42,14 @@ jobs: # echo "One or more test file(s) has changed." # echo "List all the files that have changed: ${{ steps.changed-files.outputs.all_modified_files }}" -# two: -# # if: ${{ always() && !failure() && !cancelled() }} -# if: ${{ always() && !failure() }} -# needs: [one] -# runs-on: ubuntu-latest -# steps: -# - name: Runs -# run: echo "runs" + two: + # if: ${{ always() && !failure() && !cancelled() }} + if: ${{ always() && !failure() }} + needs: [one] + runs-on: ubuntu-latest + steps: + - name: Runs + run: echo "runs"