Skip to content

Commit

Permalink
Fixing permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemoralespou committed Apr 12, 2024
1 parent c265527 commit 259298a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

- name: Iterate over directories
run: |
DIRS=$(find packages -type d -mindepth 2 -maxdepth 2 -print)
DIRS=$(find packages -mindepth 2 -maxdepth 2 -type d -print)
for DIR in ${DIRS[@]}; do
PACKAGE=$(echo $DIR | awk -F"/" '{ print $(NF-1)":"$NF }')
echo "Pushing package $PACKAGE from $DIR into ghcr.io/${{github.repository}}/$PACKAGE"
Expand Down
7 changes: 5 additions & 2 deletions fix-permissions.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/sh
#!/bin/bash

DIRS=$(find packages -type d -mindepth 2 -maxdepth 2 -print)
# Allow this script to fail without failing a build
set +e

DIRS=$(find packages -mindepth 2 -maxdepth 2 -type d -print)
for DIR in ${DIRS[@]}; do
# For every file in this directory
for FILE in $(find $DIR -type f); do
Expand Down

0 comments on commit 259298a

Please sign in to comment.