mirror of
https://github.com/joaquinjsb/gitea-release-please-action
synced 2026-05-13 03:41:37 +02:00
build: add autorelease-pending label
This commit is contained in:
14
.github/workflows/release-please.yaml
vendored
14
.github/workflows/release-please.yaml
vendored
@@ -66,6 +66,20 @@ jobs:
|
|||||||
fork: true
|
fork: true
|
||||||
package-name: ${{env.ACTION_NAME}}
|
package-name: ${{env.ACTION_NAME}}
|
||||||
command: release-pr
|
command: release-pr
|
||||||
|
- id: label
|
||||||
|
if: ${{ steps.release-pr.outputs.pr }}
|
||||||
|
uses: actions/github-script@v3
|
||||||
|
with:
|
||||||
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
script: |
|
||||||
|
const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');
|
||||||
|
await github.issues.addLabels({
|
||||||
|
owner,
|
||||||
|
repo,
|
||||||
|
issue_number: ${{steps.release-pr.outputs.pr}},
|
||||||
|
labels: ['autorelease: pending']
|
||||||
|
});
|
||||||
|
console.log(`Tagged ${{steps.release-pr.outputs.pr}}`)
|
||||||
release-please-release:
|
release-please-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build]
|
needs: [build]
|
||||||
|
|||||||
Reference in New Issue
Block a user