mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-25 02:47:57 +08:00
Add workflows to create software PRs and GitHub releases (#1123)
* Add workflows to create software PR and release * Fix job names * Minor fix * Rework workflows
This commit is contained in:
committed by
GitHub
parent
c1ee9d8bc6
commit
ba79bba9d5
30
.github/workflows/update_github_release.yml
vendored
Normal file
30
.github/workflows/update_github_release.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: Update release
|
||||
|
||||
on:
|
||||
repository_dispatch:
|
||||
types: [update-github-release]
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Update release for ${{ github.event.client_payload.ReleaseBranchName }}
|
||||
uses: actions/github-script@v2
|
||||
with:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const response = await github.repos.getReleaseByTag({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
tag: "${{ github.event.client_payload.ReleaseBranchName }}"
|
||||
});
|
||||
github.repos.updateRelease({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
release_id: response.data.id,
|
||||
prerelease: ${{ github.event.client_payload.Prerelease }}
|
||||
});
|
||||
Reference in New Issue
Block a user