Skip to content

List the file differences between the current branch commit and the common ancestor with another branch. #2303

Answered by jackton1
CustomEntity asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @CustomEntity, you can simply use the example provided in the docs

name: CI

on:
  pull_request:
    branches:
      - dev

jobs:
  # ------------------------------------------------------------------------------------------------------------------------------------------------
  # Event `pull_request`: Compare the last commit of the dev branch -> to the current commit of a PR branch.
  # ------------------------------------------------------------------------------------------------------------------------------------------------
  changed_files:
    runs-on: ubuntu-latest
    name: Test changed-files
    steps:
      - uses: actions/checkout@v4

      - name: Get changed files
        

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@CustomEntity
Comment options

@jackton1
Comment options

@CustomEntity
Comment options

Answer selected by jackton1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants