Skip to content

pseudocode

pseudocode #6

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
with:
fetch-depth: 0
- 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
- name: Pseudocode for Next steps
id: next_steps
run: |
echo Download tgz
echo Extract
echo Re-upload tgz
echo Build payload for API
echo PUT to API (gql)