Skip to content

Commit

Permalink
Push using Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
origamiofficial committed Feb 7, 2024
1 parent ccbcd53 commit 11272f4
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,14 @@ jobs:
echo "New Digest: $BASE_IMAGE_DIGEST"
echo $BASE_IMAGE_DIGEST > Base_Digest
-
name: Push changes to repository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Commit files
run: |
if [[ $(git status) == *"nothing to commit, working tree clean"* ]]; then
exit 0
fi
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git remote set-url origin https://${{ secrets.GITHUB_TOKEN }}@github.com/origamiofficial/docker-ngrok-plex.git
git add Base_Digest
git commit -m "Base Digest Updated"
git push
git commit -a -m "Base Digest Updated"
-
name: Push changes to repository
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true

0 comments on commit 11272f4

Please sign in to comment.