Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/release-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tag Release

on:
release:
types: [published]

concurrency:
group: release-tag
cancel-in-progress: false

permissions:
contents: write

jobs:
update-tag:
runs-on: ubuntu-latest
if: ${{ !github.event.release.prerelease && !github.event.release.draft }}

steps:
- name: Checkout the release commit
uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name }}
fetch-depth: 1

- name: Configure git identity
run: |
git config user.name "latest github tag bot"
git config user.email "webmaster@csh.rit.edu"

- name: Move "latest" to the release commit
run: |
set -euo pipefail
target_sha="$(git rev-parse "HEAD^{commit}")" # parses tag to git sha hash
echo "Release ${{ github.event.release.tag_name }} -> ${target_sha}"
git tag --force latest "${target_sha}"
git push --force origin refs/tags/latest
2 changes: 1 addition & 1 deletion conditional/templates/major_project_submission.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h3 class="mb-4">Major Project Form</h3>
id="skill-input"
name="skill"
type="text"
maxlength="16"
maxlength="64"
placeholder="Add a skill"
class="form-control border-0 w-100"
required
Expand Down
Loading