Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
95a66532
Unverified
Commit
95a66532
authored
Jan 02, 2022
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: use GITHUB_TOKEN auth for Project Beta GitHub Action
parent
d1c07f95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
project.yml
.github/workflows/project.yml
+7
-10
No files found.
.github/workflows/project.yml
View file @
95a66532
...
...
@@ -10,15 +10,9 @@ jobs:
name
:
Add to project
runs-on
:
ubuntu-latest
steps
:
-
name
:
Generate token
id
:
generate_token
uses
:
tibdex/github-app-token@36464acb844fc53b9b8b2401da68844f6b05ebb0
with
:
app_id
:
${{ secrets.OHMYZSH_BOT_APP_ID }}
private_key
:
${{ secrets.OHMYZSH_BOT_APP_PEM }}
-
name
:
Read project data
env
:
GITHUB_TOKEN
:
${{ s
teps.generate_token.outputs.token
}}
GITHUB_TOKEN
:
${{ s
ecrets.PROJECT_TOKEN
}}
ORGANIZATION
:
ohmyzsh
PROJECT_NUMBER
:
"
1"
run
:
|
...
...
@@ -45,9 +39,10 @@ jobs:
PLUGIN_FIELD_ID=$(jq '.data.organization.projectNext.fields.nodes[] | select(.name == "Plugin") | .id' project_data.json)
THEME_FIELD_ID=$(jq '.data.organization.projectNext.fields.nodes[] | select(.name == "Theme") | .id' project_data.json)
EOF
-
name
:
Add to project
env
:
GITHUB_TOKEN
:
${{ s
teps.generate_token.outputs.token
}}
GITHUB_TOKEN
:
${{ s
ecrets.PROJECT_TOKEN
}}
ISSUE_ID
:
${{ github.event.issue.node_id }}
PR_ID
:
${{ github.event.pull_request.node_id }}
run
:
|
...
...
@@ -62,10 +57,11 @@ jobs:
' -f project=$PROJECT_ID -f item=${ISSUE_ID:-$PR_ID} --jq '.data.addProjectNextItem.projectNextItem.id')"
echo "ITEM_ID=$item_id" >> $GITHUB_ENV
-
name
:
Classify Pull Request
if
:
github.event_name == 'pull_request_target'
env
:
GITHUB_TOKEN
:
${{ s
teps.generate_token.outputs.token
}}
GITHUB_TOKEN
:
${{ s
ecrets.PROJECT_TOKEN
}}
run
:
|
gh pr view ${{ github.event.pull_request.number }} --json files --jq '.files.[].path' | awk -F/ '
/^plugins\// {
...
...
@@ -92,10 +88,11 @@ jobs:
if [[ $(wc -l < themes.list) = 1 ]]; then
echo "THEME=$(cat themes.list)" >> $GITHUB_ENV
fi
-
name
:
Fill Pull Request fields in project
if
:
github.event_name == 'pull_request_target'
env
:
GITHUB_TOKEN
:
${{ s
teps.generate_token.outputs.token
}}
GITHUB_TOKEN
:
${{ s
ecrets.PROJECT_TOKEN
}}
run
:
|
gh api graphql -f query='
mutation (
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment