Skip to content

Commit e826ca3

Browse files
authored
Merge pull request #11 from jorgesolebur/feature/fixPipeline
Check permission issue.
2 parents b1022ce + 4ea4c9a commit e826ca3

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/pre-release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
branches:
77
- main
88

9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
913
concurrency:
1014
group: ${{ github.workflow }}
1115
cancel-in-progress: true
@@ -56,8 +60,6 @@ jobs:
5660
- name: Generate release notes
5761
if: steps.version.outputs.level == 'major' || steps.version.outputs.level == 'minor' || steps.version.outputs.level == 'patch' || steps.version.outputs.level == 'beta'
5862
id: changelog
59-
env:
60-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6163
run: |
6264
# This will be empty if there are no releases yet
6365
PREVIOUS_VERSION=$(gh release view --json tagName --jq .tagName 2>/dev/null || echo "")
@@ -95,8 +97,6 @@ jobs:
9597
# Push the new branch.
9698
git push origin "$BRANCH_NAME"
9799
- name: Create and Merge Release PR
98-
env:
99-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100100
run: |
101101
PR_URL=$(gh pr create --title "Release v$(hatch version)" --fill --label 'auto-pr')
102102
if [ -n "$PR_URL" ]; then
@@ -111,4 +111,3 @@ jobs:
111111
uses: benc-uk/workflow-dispatch@v1
112112
with:
113113
workflow: "Publish and release CumulusCI_AzureDevOps"
114-
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)