File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 11name : Update Repository
22
3- # Deny all permissions by default
4- permissions : {}
5-
63on :
74 # every Sunday at 00:36 UTC
85 # https://crontab.guru/#36_2_*_*_0
3229 )
3330 )
3431 runs-on : ubuntu-latest
35- permissions :
36- contents : write # for committing changes
37- pull-requests : write # for creating pull requests
38- issues : write # for commenting on issues
3932 steps :
4033 - if : github.event_name == 'issue_comment'
4134 uses : peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
@@ -47,19 +40,15 @@ jobs:
4740
4841 - if : github.event.comment.body == '@conda-bot render'
4942 name : Configure git origin
50- env :
51- REPOSITORY : ${{ github.event.issue.pull_request.head.repo.full_name }}
52- REF : ${{ github.event.issue.pull_request.head.ref }}
5343 run : |
54- echo " REPOSITORY=${REPOSITORY}" >> $GITHUB_ENV
55- echo " REF=${REF}" >> $GITHUB_ENV
44+ echo REPOSITORY=$(curl --silent ${{ github.event.issue.pull_request.url }} | jq --raw-output '.head.repo.full_name') >> $GITHUB_ENV
45+ echo REF=$(curl --silent ${{ github.event.issue.pull_request.url }} | jq --raw-output '.head.ref') >> $GITHUB_ENV
5646
5747 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5848 with :
5949 repository : ${{ env.REPOSITORY || github.repository }}
6050 ref : ${{ env.REF || '' }}
6151 token : ${{ secrets.SYNC_TOKEN }}
62- persist-credentials : false
6352
6453 - name : Configure git user
6554 run : |
You can’t perform that action at this time.
0 commit comments