Skip to content

Commit

Permalink
Improve GH PR
Browse files Browse the repository at this point in the history
  • Loading branch information
semeniak97mf committed Aug 20, 2024
1 parent 613aea7 commit 20b0203
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/sync-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ jobs:
if: steps.sync.outputs.has_new_commits == 'true'
run: |
echo "New commits were found to sync."
echo "LAST_COMMIT_DATE=$(git log -1 --format='%cd' --date=format:'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV
- name: No new commits
if: steps.sync.outputs.has_new_commits == 'false'
Expand All @@ -61,6 +60,7 @@ jobs:
- name: Create Pull Request
if: steps.sync.outputs.has_new_commits == 'true'
env:
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
GH_TOKEN: ${{ github.token }}
run: |
gh pr create --title "Auto PR" --body "This PR auto created" --head upstream --base test-auto-pr --reviewer ales-tsurko
LAST_COMMIT_DATE=$(git log -1 --format='%cd' --date=format:'%Y-%m-%d %H:%M:%S' upstream)
gh pr create --title "Test PR. Last commit - $LAST_COMMIT_DATE" --body "This PR auto created" --head upstream --base test-auto-pr --reviewer ales-tsurko --repo Atleta-network/polkadot-js-apps

0 comments on commit 20b0203

Please sign in to comment.