This repository was archived by the owner on Jan 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Auto Tag | ||
|
||
on: | ||
issues: | ||
types: | ||
- reopened | ||
- closed | ||
pull_request: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
auto-tag: | ||
name: Auto tag issues and PRs | ||
uses: graasp/graasp-deploy/.github/workflows/auto-tag.yml@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,14 +23,14 @@ jobs: | |
# creates minor and major tags that follow the latest release | ||
- name: Tag major and minor versions | ||
uses: jacobsvante/[email protected] | ||
if: ${{ steps.release.outputs.release_created }} | ||
if: ${{ steps.release.outputs.releases_created }} | ||
with: | ||
major: ${{ steps.release.outputs.major }} | ||
minor: ${{ steps.release.outputs.minor }} | ||
|
||
# put created tag in an env variable to be sent to the dispatch | ||
- name: Set tag | ||
if: ${{ steps.release.outputs.release_created }} | ||
if: ${{ steps.release.outputs.releases_created }} | ||
id: set-tag | ||
run: | | ||
REPOSITORY=$(echo '${{ github.repository }}') | ||
|
@@ -40,10 +40,16 @@ jobs: | |
# Trigger an 'on: repository_dispatch' workflow to run in graasp-deploy repository | ||
- name: Push tag to Graasp Deploy (Staging) | ||
if: ${{ steps.release.outputs.release_created }} | ||
if: ${{ steps.release.outputs.releases_created }} | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
token: ${{ secrets.REPO_ACCESS_TOKEN }} | ||
repository: graasp/graasp-deploy | ||
event-type: update-staging-version | ||
client-payload: ${{steps.set-tag.outputs.json}} | ||
|
||
- name: Auto Tag | ||
uses: graasp/graasp-deploy/.github/actions/auto-tag-after-release@v1 | ||
with: | ||
releases_created: ${{ steps.release.outputs.releases_created }} | ||
tag_name: ${{ steps.release.outputs.tag_name }} |