From 75ca46952e1a2be1d3efaf95fd31b729be977d62 Mon Sep 17 00:00:00 2001 From: SeUkKim Date: Tue, 22 Oct 2024 16:37:50 +0900 Subject: [PATCH 1/6] add v to version. --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c04ebe0..c6651f7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,11 +12,13 @@ jobs: - uses: actions/checkout@v4 - name: get versions id: get_version - run: echo "##[set-output name=version;]$(echo '${{ github.event.head_commit.message }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')" + run: | + version=$(echo '${{ github.event.head_commit.message }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}') + echo "##[set-output name=version;]v$version" - name: make release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ steps.get_version.outputs.version }} - release_name: ${{ steps.get_version.outputs.version }} \ No newline at end of file + release_name: ${{ steps.get_version.outputs.version }} From cb256db1cd47163d927129fac21489134e7f1750 Mon Sep 17 00:00:00 2001 From: SeUkKim Date: Tue, 22 Oct 2024 17:03:52 +0900 Subject: [PATCH 2/6] trigger a action only for a infra user. --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c6651f7..6541134 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,7 @@ on: jobs: build: + if: github.actor == 'initia-infra' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From 859834d8a0c05ce267c85ad1d6541fcd307b7a2f Mon Sep 17 00:00:00 2001 From: SeUkKim Date: Tue, 22 Oct 2024 19:13:58 +0900 Subject: [PATCH 3/6] fix deprecated. --- .github/workflows/release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6541134..6c5e1a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,6 @@ on: jobs: build: - if: github.actor == 'initia-infra' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -15,7 +14,7 @@ jobs: id: get_version run: | version=$(echo '${{ github.event.head_commit.message }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}') - echo "##[set-output name=version;]v$version" + echo "version=v$version" >> $GITHUB_OUTPUT - name: make release uses: actions/create-release@v1 env: From 8ea1228216a0ab7f8c2129e96fc244afdc716f32 Mon Sep 17 00:00:00 2001 From: SeUkKim Date: Wed, 23 Oct 2024 13:03:55 +0900 Subject: [PATCH 4/6] run action only when a user with the specific email makes a commit --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6c5e1a0..508c763 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,7 @@ on: jobs: build: + if: github.event.head_commit.author.email == 'infra@initia.xyz' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From ed177f4be76df19c80dc4f2e2413f6d5d007617c Mon Sep 17 00:00:00 2001 From: SeUkKim Date: Thu, 31 Oct 2024 15:33:22 +0900 Subject: [PATCH 5/6] change name. but t has an deprecated issues. --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 508c763..9eccb97 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: run: | version=$(echo '${{ github.event.head_commit.message }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}') echo "version=v$version" >> $GITHUB_OUTPUT - - name: make release + - name: create release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 5b7d6b0f55bd50e73cb7ae48babf767b3c69e3bb Mon Sep 17 00:00:00 2001 From: SeUkKim Date: Tue, 5 Nov 2024 16:52:15 +0900 Subject: [PATCH 6/6] use initia-labs/actions/create-release. --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9eccb97..3eeaede 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: version=$(echo '${{ github.event.head_commit.message }}' | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}') echo "version=v$version" >> $GITHUB_OUTPUT - name: create release - uses: actions/create-release@v1 + uses: initia-labs/actions/create-release@main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: