-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding basic reusable workflow to test out functionality
- Loading branch information
1 parent
fc6f120
commit 35a8082
Showing
4 changed files
with
67 additions
and
0 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,50 @@ | ||
name: Test Workflow | ||
|
||
on: | ||
# Triggers the workflow when called from organization repository | ||
workflow_call: | ||
inputs: | ||
test_param: | ||
required: false | ||
default: 'value' | ||
type: string | ||
|
||
jobs: | ||
release: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Fetch all tags | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github actions" | ||
git fetch --tags --unshallow --prune | ||
- name: Publish release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
latest_tag=v${{github.run_number}} | ||
gh release create $latest_tag --generate-notes | ||
publish: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
# Checkout Project | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.ref }} | ||
|
||
- name: Project | ||
run: | | ||
pwd | ||
ls | ||
cd .. | ||
ls |
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
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,4 @@ | ||
TEST FILE | ||
- 1 | ||
- 2 | ||
- 3 |
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,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>am-reusable-workflows</groupId> | ||
<artifactId>reusable_workflows</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
|
||
|
||
</project> |