mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-13 03:21:34 +02:00
ci: update permissions for release-please workflow
This commit is contained in:
55
.github/workflows/release-please.yaml
vendored
55
.github/workflows/release-please.yaml
vendored
@@ -3,6 +3,9 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
name: release-please
|
name: release-please
|
||||||
env:
|
env:
|
||||||
ACTION_NAME: gitea-release-please-action
|
ACTION_NAME: gitea-release-please-action
|
||||||
@@ -10,30 +13,30 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
- name: install
|
- name: install
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: build
|
- name: build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
- name: Create PR with dist
|
- name: Create PR with dist
|
||||||
uses: googleapis/code-suggester@v4
|
uses: googleapis/code-suggester@v4
|
||||||
with:
|
with:
|
||||||
command: pr
|
command: pr
|
||||||
upstream_repo: gitea-release-please-action
|
upstream_repo: gitea-release-please-action
|
||||||
upstream_owner: joaquinjsb
|
upstream_owner: joaquinjsb
|
||||||
description: Build dist
|
description: Build dist
|
||||||
title: "chore: build dist"
|
title: "chore: build dist"
|
||||||
message: "chore: build dist"
|
message: "chore: build dist"
|
||||||
labels: automated pr
|
labels: automated pr
|
||||||
branch: build-dist
|
branch: build-dist
|
||||||
force: true
|
force: true
|
||||||
git_dir: .
|
git_dir: .
|
||||||
fork: true
|
fork: true
|
||||||
env:
|
env:
|
||||||
ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
|
ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
|
||||||
release-please-release:
|
release-please-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build]
|
needs: [build]
|
||||||
@@ -49,7 +52,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config user.name github-actions[bot]
|
git config user.name github-actions[bot]
|
||||||
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
||||||
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN}}@github.com/joaquinjsb/release-please-action.git"
|
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN}}@github.com/joaquinjsb/gitea-release-please-action.git"
|
||||||
git tag -d v${{ steps.release.outputs.major }} || true
|
git tag -d v${{ steps.release.outputs.major }} || true
|
||||||
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
|
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
|
||||||
git push origin :v${{ steps.release.outputs.major }} || true
|
git push origin :v${{ steps.release.outputs.major }} || true
|
||||||
@@ -71,4 +74,4 @@ jobs:
|
|||||||
token: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
|
token: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
|
||||||
release-type: node
|
release-type: node
|
||||||
fork: true
|
fork: true
|
||||||
skip-github-release: true
|
skip-github-release: true
|
||||||
Reference in New Issue
Block a user