Skip to content

Commit a401e30

Browse files
committed
refactor: authenticate in main action if possible
1 parent 48bbaf3 commit a401e30

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
FROM bycedric/ci-expo:2
22

33
LABEL com.github.actions.name="Expo CLI (unofficial)"
4-
LABEL com.github.actions.description="Use any Expo command in your GitHub Actions workflow."
4+
LABEL com.github.actions.description="Use any Expo CLI command in your GitHub Actions workflow."
55
LABEL com.github.actions.icon="terminal"
66
LABEL com.github.actions.color="gray-dark"
7+
8+
COPY entrypoint.sh LICENSE.md README.md /
9+
10+
entrypoint ["/entrypoint.sh"]

entrypoint.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh -l
2+
3+
set -e
4+
5+
if [ -n "$EXPO_USERNAME" ] && [ -n "$EXPO_PASSWORD" ]; then
6+
expo login --username $EXPO_USERNAME --password $EXPO_PASSWORD
7+
else
8+
echo 'Skipping Expo login, username and/or password not defined...'
9+
fi
10+
11+
sh -c "expo $*"

0 commit comments

Comments
 (0)