Bump denoland/deno from b1e64ea
to 486dd83
(#71)
#138
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Drafter | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, reopened, synchronize] | |
permissions: | |
contents: read | |
jobs: | |
update_release_draft: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@master | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- id: release_draft | |
uses: release-drafter/release-drafter@v5 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Version Update | |
if: github.event_name == 'push' | |
env: | |
TAG_NAME: ${{ steps.release_draft.outputs.tag_name }} | |
run: | | |
deno run -A main.ts set $TAG_NAME | |
git config --global user.email "[email protected]" | |
git config --global user.name "Justin Chase" | |
git status --short | |
if [[ $(git commit -am "$TAG_NAME") ]] | |
then | |
git push | |
else | |
echo "No changes detected, skipping commit." | |
fi |