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
- Host: GitHub
- URL: https://github.com/formtrix/passing-arguments-to-an-action
- Owner: Formtrix
- Created: 2024-06-19T20:28:13.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-06-19T23:21:05.000Z (11 months ago)
- Last Synced: 2025-02-16T06:23:54.381Z (3 months ago)
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 Tomcaton: [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
```