depend on callable #82
This file contains 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: Test | |
on: | |
push | |
# concurrency: | |
# group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
# cancel-in-progress: true | |
env: | |
TEST_VAR: ${{ 'testing' }} | |
IS_MAIN_MERGE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
IS_NAMED_BRANCH: ${{ github.ref == 'refs/heads/test_changed_files_action' }} | |
jobs: | |
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: Print status | |
run: echo "jobs.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' | |
run: echo "skipped" | |
# - name: No files in matcher have been modified | |
# if: steps.changed-files.outputs.any_modified != 'true' | |
# run: echo "any_modified != 'true'" | |
# - name: Print all modified files | |
# if: steps.changed-files.outputs.any_modified == 'true' | |
# run: | | |
# 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" | |