Skip to content

Commit

Permalink
Update PR workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oberacda committed Feb 21, 2024
1 parent 4bcaf4f commit 3012f53
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/create_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
git clone \
--depth=1 \
--branch=main \
https://fzi-forschungszentrum-informatik:${{ secrets.ACCESS_TOKEN }}@github.com/$REPOSITORY \
https://${{ secrets.GITHUB_TOKEN }}@github.com/$REPOSITORY \
$FOLDER
cd $FOLDER
Expand All @@ -52,13 +52,9 @@ jobs:
git commit -m "Update Web-GUI to $LATEST_TAG"
git push origin $BRANCH_NAME
# Store the PAT in a file that can be accessed by the
# GitHub CLI.
echo "${{ secrets.ACCESS_TOKEN }}" > token.txt
# Authorize GitHub CLI for the current repository and
# create a pull-requests containing the updates.
gh auth login --with-token < token.txt
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
gh pr create \
--body "" \
--title "Update Web-GUI to $LATEST_TAG" \
Expand Down

0 comments on commit 3012f53

Please sign in to comment.