Skip to content

Commit

Permalink
Remove references to event.inputs (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
hatchan authored Sep 8, 2022
1 parent b3a1008 commit 2955519
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
SERVICE: proxy
jobs:
release:
name: Release proxy ${{ github.event.inputs.version }}
name: Release proxy ${{ github.event.release.tag_name }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
Expand All @@ -40,7 +40,7 @@ jobs:
echo "DEV_IMAGE=${{ steps.ecr.outputs.registry }}/${SERVICE}" >> $GITHUB_ENV
echo "DEV_TAG=dev-${SHORT_SHA}" >> $GITHUB_ENV
echo "RELEASE_IMAGE=${{ steps.ecr.outputs.registry }}/${SERVICE}" >> $GITHUB_ENV
echo "RELEASE_TAG=release-${{ github.event.inputs.version }}" >> $GITHUB_ENV
echo "RELEASE_TAG=release-${{ github.event.release.tag_name }}" >> $GITHUB_ENV
echo "MAJOR_VERSION=$(echo '${{ github.event.release.tag_name }}' | awk '{ split($0,version,".") ; print version[1] }')" >> $GITHUB_ENV
- name: Write summary
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
artifacts/
- name: Create version file
run: echo "${{ github.event.inputs.version }}" | cut -c2- > artifacts/version
run: echo "${{ github.event.release.tag_name }}" | cut -c2- > artifacts/version

- name: Upload to GitHub artifacts
uses: actions/upload-artifact@v2
Expand All @@ -97,7 +97,7 @@ jobs:
--acl public-read \
--delete \
artifacts/ \
s3://${{ secrets.RELEASES_BUCKET }}/${SERVICE}/${{ github.event.inputs.version }}/
s3://${{ secrets.RELEASES_BUCKET }}/${SERVICE}/${{ github.event.release.tag_name }}/
aws s3 sync \
--acl public-read \
--delete \
Expand Down

0 comments on commit 2955519

Please sign in to comment.