Skip to content

Commit

Permalink
chore: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Oct 2, 2021
1 parent 1c1e004 commit c034188
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/reaction-comments.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Delete reaction comments'
name: 'Reaction Comments'

on:
issue_comment:
Expand All @@ -8,10 +8,13 @@ on:
schedule:
- cron: '0 0 * * *'

permissions:
actions: write
issues: write
pull-requests: write

jobs:
lockdown:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/reaction-comments@v2
with:
github-token: ${{ github.token }}
23 changes: 15 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
name: Create release

on: create
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
release:
name: Release on GitHub
runs-on: ubuntu-18.04
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '.')
runs-on: ubuntu-20.04
permissions:
contents: write
steps:
- name: Get release information
id: release_info
run: |
echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
- name: Create GitHub release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
tag_name: ${{ steps.release_info.outputs.TAG }}
name: ${{ steps.release_info.outputs.TAG }}
body: >
Learn more about this release from the [changelog](https://github.com/dessant/reaction-comments/blob/master/CHANGELOG.md#changelog).

0 comments on commit c034188

Please sign in to comment.