An open API service indexing awesome lists of open source software.

https://github.com/formtrix/passing-arguments-to-an-action


https://github.com/formtrix/passing-arguments-to-an-action

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# passing-arguments-to-an-action

Arguments are passed to the following actions:

- [actions/checkout](https://github.com/actions/checkout)
- [actions/setup-java](https://github.com/actions/setup-java)

```
name: Build Tomcat

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Check out tomcat-users.xml
uses: actions/checkout@v2

- name: List project files and java version
run: |
ls -ltr
java -version

- name: Check out Apache Tomcat
uses: actions/checkout@v2
with:
repository: apache/tomcat # Repository name with owner
ref: master # The branch, tag or SHA to checkout
path: ./tomcat # Relative path under $GITHUB_WORKSPACE

- name: Setup Java 21.0.2
uses: actions/setup-java@v1
with:
java-version: '21.0.2' # The JDK version to make available on the path
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64 # (x64 or x86) - defaults to x64

- name: List project files and java version
run: |
ls -ltr
java -version

- name: Copy tomcat-users.xml into Tomcat configuration directory
run: cp -v tomcat-users.xml ./tomcat/conf/tomcat-users.xml

- name: Compile Tomcat
run: |
cd ./tomcat
ant
```