Skip to content

testing logic for changed files #4

testing logic for changed files

testing logic for changed files #4

name: Update Hub DB from GH Registry
on:
push:
branches:
- lyndon/registry-automation # TODO: Remove the branch response
pull_request:
types: [closed]
jobs:
upload_to_s3:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: List changed files
id: list_files
run: |
if [ "${{ github.event.before }}" == "0000000000000000000000000000000000000000" ]; then
git diff --name-only ${{ github.sha }} > changed_files.txt
else
git diff --name-only ${{ github.event.before }} ${{ github.sha }} > changed_files.txt
fi
cat changed_files.txt