Skip to content

Commit

Permalink
CI: clone for env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Jan 28, 2024
1 parent 377a0f6 commit 4b51cd7
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/update_apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ jobs:
env:
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
run: |
# print git config info
echo "git config --list"
git config --list
# print user info
echo $USER $USERNAME $(id) $(whoami)
Expand Down Expand Up @@ -308,6 +305,8 @@ jobs:
needs: [get-latest-app-versions,test-updated-apps]
runs-on: ubuntu-latest
steps:
# setup github environment variables
- uses: actions/checkout@v3
# restore GITHUB_WORKSPACE
- uses: actions/download-artifact@v3
with:
Expand All @@ -316,7 +315,7 @@ jobs:
- name: Extract GITHUB_WORKSPACE
run: |
cd ${{ runner.temp }}
tar xf GITHUB_WORKSPACE.tar -C $GITHUB_WORKSPACE
tar xf GITHUB_WORKSPACE.tar -C $GITHUB_WORKSPACE --exclude=".git"
cd $GITHUB_WORKSPACE
- name: Delete artifact
uses: geekyeggo/delete-artifact@v2
Expand Down Expand Up @@ -376,14 +375,6 @@ jobs:
echo "ALL_UPDATED_APPS<<EOF" >> $GITHUB_ENV
echo "$ALL_UPDATED_APPS" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
# print git config info
echo "git config --list"
git config --list
# print all files and directories
echo "ls -aR"
ls -aR
echo "ls -aR $GITHUB_WORKSPACE"
ls -aR $GITHUB_WORKSPACE
- name: Create Commit and Push
uses: EndBug/add-and-commit@v9
Expand Down

0 comments on commit 4b51cd7

Please sign in to comment.