Skip to content

Commit

Permalink
fix invalid workflow issue. update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
leigholiver committed Dec 30, 2020
1 parent 03f345c commit af931f6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 24 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/tag.yml

This file was deleted.

15 changes: 14 additions & 1 deletion .github/workflows/test.yml → .github/workflows/test-tag.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run tests
name: Run tests, Tag release

on:
push:
Expand All @@ -9,6 +9,19 @@ on:
- fix/*

jobs:
create_tag:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs: run_tests
steps:
- name: Checkout
uses: actions/checkout@v2

- name: check if tag already exists
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* && git rev-parse "$(cat VERSION)" >/dev/null 2>&1 && exit 1 || exit 0

- name: create tag
run: git config --global user.email "${{ github.actor }}" && git config --global user.name "${{ github.actor }}" && git tag -a -m "$(cat VERSION)" $(cat VERSION) && git push --follow-tags
run_tests:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Action to commit a file/directory to another repo using a deploy key.
* Add the private key to your source repo as a secret

```yaml
uses: leigholiver/[email protected].0
uses: leigholiver/[email protected].2
with:
source: build_output
destination_folder: dist
Expand Down

0 comments on commit af931f6

Please sign in to comment.