Skip to content

Commit

Permalink
Fix credentials (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Nov 21, 2021
1 parent 0239252 commit 30e3d8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
- uses: actions/checkout@v2
with:
path: monica-docker
persist-credentials: false
- uses: actions/checkout@v2
with:
repository: docker-library/official-images
path: official-images
persist-credentials: false

- name: Install bashbrew
working-directory: monica-docker
Expand All @@ -36,7 +38,7 @@ jobs:
remoteurl="https://$USER_NAME:[email protected]/$USER_NAME/official-images.git"
latest="$(curl -fsSL 'https://api.github.com/repos/monicahq/monica/releases/latest' | jq -r '.tag_name' | cut -c 2-)"
branch="monica-v$latest"
message="Update Monica to $latest"
message="Update Monica to v$latest"
status=$(git status --porcelain)
if [ -n "$status" ]; then
Expand All @@ -48,7 +50,7 @@ jobs:
git remote remove $remote || true
git remote add -f $remote $remoteurl || true
git push $remote HEAD:$branch
gh pr create --base docker-library:master --head $USER_NAME:$branch --title "$message" --body "Update Monica to [$latest](https://github.com/monicahq/monica/releases/tag/$latest)."
gh pr create --base docker-library:master --head $USER_NAME:$branch --title "$message" --body "Update Monica to [v$latest](https://github.com/monicahq/monica/releases/tag/v$latest)."
else
echo "Already up to date"
fi
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
remote=upstream
remoteurl="https://$USER_NAME:[email protected]/monicahq/docker.git"
latest="$(curl -fsSL 'https://api.github.com/repos/monicahq/monica/releases/latest' | jq -r '.tag_name' | cut -c 2-)"
branch="release-$latest"
message="Update to $latest"
branch="release-v$latest"
message="Update to v$latest"
status=$(git status --porcelain)
if [ -n "$status" ]; then
Expand All @@ -37,7 +37,7 @@ jobs:
git remote remove $remote || true
git remote add -f $remote $remoteurl || true
git push $remote HEAD:$branch
gh pr create --title "$message" --body "Update Monica to [$latest](https://github.com/monicahq/monica/releases/tag/$latest)."
gh pr create --title "$message" --body "Update Monica to [v$latest](https://github.com/monicahq/monica/releases/tag/v$latest)."
else
echo "Already up to date"
fi
Expand Down

0 comments on commit 30e3d8e

Please sign in to comment.