Skip to content

Commit

Permalink
allow forcing staging
Browse files Browse the repository at this point in the history
  • Loading branch information
Lifeismana committed Sep 4, 2024
1 parent 23d661e commit 81a8d27
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ on:
description: 'Version to use with the app id'
required: false
default: ''
force:
description: 'Force Staging'
type: choice
options:
- true
- false
required: false
default: "false"

repository_dispatch:
schedule:
- cron: '0 6 * * TUE,WED,THU,FRI,SAT'
Expand Down Expand Up @@ -46,6 +55,7 @@ jobs:
ref: main
- uses: docker://ghcr.io/lifeismana/steam-apk-watcher:latest
env:
FORCE: ${{ inputs.force }}
APP_TO_PROCESS: ${{ inputs.app_id }}
APP_VERSION: ${{ inputs.version }}
GIT_NAME: ${{ secrets.GIT_NAME}}
Expand Down
2 changes: 1 addition & 1 deletion script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ ProcessApp()
current_version=$(xpath -q -e "string(/manifest/@android:versionName)" $1/resources/AndroidManifest.xml)
fi
echo "Current version: $current_version"
if [ -n "$APP_TO_PROCESS" ] || [ "$previous_version" != "$current_version" ]; then
if [ -n "$APP_TO_PROCESS" ] || [ "$previous_version" != "$current_version" ] || [ -n "$FORCE" -a "$FORCE" = "true" ]; then
git add $1
else
echo "Skipping staging changes: apk version didn't change"
Expand Down

0 comments on commit 81a8d27

Please sign in to comment.