Skip to content

Commit

Permalink
Merge pull request #3 from Srgr0/main
Browse files Browse the repository at this point in the history
v0.2.0
  • Loading branch information
Srgr0 committed Jan 29, 2024
2 parents 5e12b09 + 0c014a8 commit d330e15
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/deploy-test-environment.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
######################################################################
# joinmisskey/misskey-tga(https://github.com/joinmisskey/misskey-tga)
# v0.2.0
######################################################################

name: Deploy test environment

on:
#push
#push:
workflow_dispatch:
inputs:
repository:
Expand All @@ -10,6 +15,9 @@ on:
branch:
description: 'Branch to deploy (optional)'
required: false
commit_hash:
description: 'Commit hash to deploy (optional)'
required: false

jobs:
deploy-test-environment:
Expand All @@ -22,12 +30,14 @@ jobs:
echo "REPOSITORY=$REPOSITORY" >> $GITHUB_ENV
BRANCH=${{ github.event.inputs.branch || github.ref_name }}
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
COMMIT_HASH=${{ github.event.inputs.commit_hash }}
echo "COMMIT_HASH=$COMMIT_HASH" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ env.REPOSITORY }}
ref: ${{ env.BRANCH }}
ref: ${{ env.COMMIT_HASH || env.BRANCH }}

- name: Get the latest commit SHA
run: |
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
### v0.2.0
- コミットハッシュの指定に対応(workflow_dispatch)
- READMEに「GitHub Actionsの規約への適合について」を記載

### v0.1.0
Hello world!
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.1.0
v0.2.0

0 comments on commit d330e15

Please sign in to comment.