Skip to content

Commit

Permalink
Cleanup + added repo input
Browse files Browse the repository at this point in the history
  • Loading branch information
GPaoloni committed Sep 7, 2022
1 parent 10bb43d commit 543dca3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/actions/generate-pre-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ inputs:
title:
description: Release title - The title that will be given to this pre-release.
required: true
repository:
required: true
description: The github repo to compare tags against. Tipically ${{ github.event.repository.name }}.
repo_token:
description: A GitHub token to access the repo. Tipically secrets.GITHUB_TOKEN.
required: true
Expand All @@ -30,14 +33,13 @@ runs:
- name: Get latest tag
uses: oprypin/find-latest-tag@v1
with:
repository: techmatters/flex-plugins # This repo
repository: ${{ inputs.repository }}
# releases-only: false
prefix: "${{ inputs.tag-prefix }}-${{ inputs.tag-suffix }}"
id: latest_matching_tag
continue-on-error: true

# Generate next tag

- name: Generate next tag
run: npm run generate-next-tag
env:
Expand Down
7 changes: 0 additions & 7 deletions .github/actions/generate-pre-release/generate-next-tag.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
/**
* If changes are made to this file, it needs to be recompiled using @vercel/ncc (https://github.com/vercel/ncc).
* 1) Install vercel/ncc by running this command in your terminal. npm i -g @vercel/ncc
* 2) Compile your index.js file. ncc build index.js --license licenses.txt
* For details see https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action#commit-tag-and-push-your-action-to-github
*/

import { setOutput, setFailed } from '@actions/core';

async function generateNextTag() {
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/plugin-hrm-form-pre-release-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
jobs:

build-and-deploy:
# TODO: remove branch tag (@gian_CHI-1262-p2)
# TODO: remove branch tag
uses: techmatters/flex-plugins/.github/workflows/end_to_end_development.yml@gian_CHI-1262-p2
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down Expand Up @@ -78,6 +78,7 @@ jobs:
tag-prefix: ${{ inputs.tag-prefix }}
tag-suffix: 'qa'
title: ${{ inputs.title }}
repository: ${{ github.event.repository.name }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
id: create_pre_release

Expand Down

0 comments on commit 543dca3

Please # to comment.