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
9dd1dc49
Unverified
Commit
9dd1dc49
authored
Jan 03, 2022
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: simplify `GITHUB_TOKEN` env in project GitHub Action
parent
121ee818
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
project.yml
.github/workflows/project.yml
+2
-6
No files found.
.github/workflows/project.yml
View file @
9dd1dc49
...
...
@@ -9,10 +9,11 @@ jobs:
add-to-project
:
name
:
Add to project
runs-on
:
ubuntu-latest
env
:
GITHUB_TOKEN
:
${{ secrets.PROJECT_TOKEN }}
steps
:
-
name
:
Read project data
env
:
GITHUB_TOKEN
:
${{ secrets.PROJECT_TOKEN }}
ORGANIZATION
:
ohmyzsh
PROJECT_NUMBER
:
"
1"
run
:
|
...
...
@@ -42,7 +43,6 @@ jobs:
-
name
:
Add to project
env
:
GITHUB_TOKEN
:
${{ secrets.PROJECT_TOKEN }}
ISSUE_ID
:
${{ github.event.issue.node_id }}
PR_ID
:
${{ github.event.pull_request.node_id }}
run
:
|
...
...
@@ -60,8 +60,6 @@ jobs:
-
name
:
Classify Pull Request
if
:
github.event_name == 'pull_request_target'
env
:
GITHUB_TOKEN
:
${{ secrets.PROJECT_TOKEN }}
run
:
|
gh pr view ${{ github.event.pull_request.number }} --json files --jq '.files.[].path' | awk -F/ '
/^plugins\// {
...
...
@@ -91,8 +89,6 @@ jobs:
-
name
:
Fill Pull Request fields in project
if
:
github.event_name == 'pull_request_target'
env
:
GITHUB_TOKEN
:
${{ secrets.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