mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 15:14:08 +00:00
workflow: checkout master via action to update readme
This commit is contained in:
parent
9938667ad1
commit
2a0f9ebc28
1 changed files with 25 additions and 16 deletions
41
.github/workflows/release.yml
vendored
41
.github/workflows/release.yml
vendored
|
@ -41,6 +41,31 @@ jobs:
|
|||
run: |
|
||||
echo "::set-output name=notes::$(python tools/announceybot/generate_releasenotes.py "${{ steps.tag.outputs.version }}")"
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: Release ${{ steps.tag.outputs.version }} # Remove 'refs/tags/' from the tag name
|
||||
body: ${{ steps.release_notes.outputs.notes }} # Use the release notes from the output of the previous step
|
||||
|
||||
- name: Announce Release
|
||||
env:
|
||||
TAG_NAME: ${{ steps.tag.outputs.version }}
|
||||
WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||
DEGUG: true
|
||||
run: |
|
||||
python tools/announceybot/announceybot.py "${TAG_NAME}"
|
||||
|
||||
|
||||
# README update
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: refs/heads/master
|
||||
|
||||
- name: Run script to update README
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
@ -57,19 +82,3 @@ jobs:
|
|||
git commit -am "Update README"
|
||||
git push origin master
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: Release ${{ steps.tag.outputs.version }} # Remove 'refs/tags/' from the tag name
|
||||
body: ${{ steps.release_notes.outputs.notes }} # Use the release notes from the output of the previous step
|
||||
|
||||
- name: Announce Release
|
||||
env:
|
||||
TAG_NAME: ${{ steps.tag.outputs.version }}
|
||||
WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||
run: |
|
||||
python tools/announceybot/announceybot.py "${TAG_NAME}"
|
||||
|
|
Loading…
Add table
Reference in a new issue