mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 11:51:04 +01:00
Switch token approach (#2013)
According to this run, the attempt to get write permissions failed: https://github.com/carbon-language/carbon-lang/runs/7811743119?check_suite_focus=true So I'm switching to an org secret, which I believe I can definitely make work.
This commit is contained in:
@@ -19,9 +19,6 @@ on:
|
||||
types:
|
||||
- labeled
|
||||
|
||||
permissions:
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
proposal_labeled:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -37,7 +34,7 @@ jobs:
|
||||
--remove-label "proposal deferred" \
|
||||
--add-label "proposal"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.LABEL_ACTION_GITHUB }}
|
||||
PR: ${{ github.event.pull_request.html_url }}
|
||||
|
||||
- name: rfc
|
||||
@@ -51,7 +48,7 @@ jobs:
|
||||
--remove-label "proposal deferred" \
|
||||
--add-label "proposal"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.LABEL_ACTION_GITHUB }}
|
||||
PR: ${{ github.event.pull_request.html_url }}
|
||||
|
||||
- name: accepted
|
||||
@@ -65,7 +62,7 @@ jobs:
|
||||
--remove-label "proposal deferred" \
|
||||
--add-label "proposal"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.LABEL_ACTION_GITHUB }}
|
||||
PR: ${{ github.event.pull_request.html_url }}
|
||||
|
||||
- name: declined
|
||||
@@ -79,7 +76,7 @@ jobs:
|
||||
--remove-label "proposal deferred" \
|
||||
--add-label "proposal"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.LABEL_ACTION_GITHUB }}
|
||||
PR: ${{ github.event.pull_request.html_url }}
|
||||
|
||||
- name: deferred
|
||||
@@ -93,5 +90,5 @@ jobs:
|
||||
--remove-label "proposal declined" \
|
||||
--add-label "proposal"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.LABEL_ACTION_GITHUB }}
|
||||
PR: ${{ github.event.pull_request.html_url }}
|
||||
|
||||
@@ -10,9 +10,6 @@ on:
|
||||
types:
|
||||
- ready_for_review
|
||||
|
||||
permissions:
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
proposal_ready:
|
||||
if: contains(github.event.pull_request.labels.*.name, 'proposal')
|
||||
@@ -27,5 +24,5 @@ jobs:
|
||||
--remove-label "proposal deferred" \
|
||||
--add-label "proposal rfc"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.LABEL_ACTION_GITHUB }}
|
||||
PR: ${{ github.event.pull_request.html_url }}
|
||||
|
||||
Reference in New Issue
Block a user