Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Go main branch #2

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
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
31 changes: 31 additions & 0 deletions .github/workflows/versioncheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: versioncheck

on:
push:
branches: [ go-main ]
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
versioncheck:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Check for repeated file versions
run: |
revnums=()
for file in $GITHUB_WORKSPACE/versions/*.txt; do
REVNUM=`echo "$file" | cut -d '_' -f1`
for _revnum in "${revnums[@]}"; do
if [ $_revnum == $REVNUM ]; then
echo "$REVNUM is repeated"
exit 1
fi
done
revnums+=("$REVNUM")
done

10 changes: 10 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package main

import (
"fmt"
)

func main() {
fmt.Printf("Hello from Reviewpad.")
}

2 changes: 2 additions & 0 deletions versions/1_initial.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This is the first version of the repo.