Skip to content

Commit

Permalink
test(workflow):test of trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Fremond committed Nov 24, 2023
1 parent a58f5c5 commit 143f4ba
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/ga-image-build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,17 @@ jobs:
username: ${{ secrets.USER_DOCKER_01EDU_ORG }}
password: ${{ secrets.SECRET_DOCKER_01EDU_ORG }}

- name: postgres-db source code changes check
id: check-changes-1
run: |
echo $(git diff --name-only --merge-base master -- srcs/postgres-db)
echo "changed_files=$(git diff --name-only --merge-base master -- srcs/postgres-db | xargs)" >> $GITHUB_OUTPUT
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v40
with:
path: './srcs/postgres-db'
# NOTE: `since_last_remote_commit: true` is implied by default and falls back to the previous local commit.
- name: 🏗️ Build the 💻 postgres-db image
env:
CHANGED_FILES: ${{ steps.check-changes-1.outputs.changed_files }}
if: steps.changed-files-yaml.outputs.test_any_changed == 'true'
run: |
echo "$CHANGED_FILES"
echo "$CHANGED_FILES"
echo "$CHANGED_FILES"
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "$file was changed"
done
# docker build srcs/postgres-db/ --file srcs/postgres-db/Dockerfile --tag ghcr.io/01-edu/content-postgres-db
# docker push ghcr.io/01-edu/content-postgres-db

0 comments on commit 143f4ba

Please sign in to comment.