Skip to content

Commit

Permalink
feat: add action repo template
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik authored and aeneasr committed Oct 1, 2020
1 parent c70d5bf commit 317f551
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/sync.yml
Expand Up @@ -83,3 +83,18 @@ jobs:
run: ./scripts/sync-library.sh ory/x master X
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_AENEASR }}

- name: Syncronize ORY Closed Reference Notifier
run: ./scripts/sync-action.sh ory/closed-reference-notifier master "Closed Reference Notifier"
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_AENEASR }}

- name: Syncronize ORY Label Sync Action
run: ./scripts/sync-action.sh ory/label-sync-action master "Label Sync Action"
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_AENEASR }}

- name: Syncronize ORY Milestone Action
run: ./scripts/sync-action.sh ory/milestone-action master "Milestone Action"
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_AENEASR }}
14 changes: 14 additions & 0 deletions scripts/sync-action.sh
@@ -0,0 +1,14 @@
#!/bin/bash

set -Eexuo pipefail

cd "$( dirname "${BASH_SOURCE[0]}" )/.."
source scripts/sync.sh

workdir=$(mktemp -d)
project=$1
branch=$2
humanName=$3

git clone --depth 1 --branch "$branch" "git@github.com:$1.git" "$workdir"
sync "$workdir" "$branch" "action" "$humanName" "$project"
15 changes: 15 additions & 0 deletions templates/repository/action/.github/workflows/release_tagger.yml
@@ -0,0 +1,15 @@
name: Tag latest and major release

on:
release:
types: [published, edited]

jobs:
actions-tagger:
runs-on: ubuntu-latest
steps:
- uses: Actions-R-Us/actions-tagger@latest
env:
GITHUB_TOKEN: "${{ github.token }}"
with:
publish_latest_tag: true

0 comments on commit 317f551

Please sign in to comment.