title: In Github actions, in an expression is there a way to determine what path/directory was pushed/committed to?
body: <p>Within a single Github action script, I'm looking to differentiate between commits on 2 different paths/directories. The below script is essentially what I'm trying to do. What I'm unsure about is how to determine the path committed to within an expression. For now I have <strong>github.event.path</strong> but that's probably wrong.</p>
  <pre><code>on:
    push:
      branches: [ master ]
      paths: 
        - 'Path1/**'
        - 'Path2/**'
  
  jobs:
    build:
      runs-on: ubuntu-latest
      steps:
        - name: do something when Path1 directory has a commit
          if: github.event.path == 'Path1/**'
          run: &lt;do something&gt;
        - name: do something when Path2 directory has a commit
          if: github.event.path == 'Path2/**'
          run: &lt;do something else&gt;
  </code></pre>