TEMP trigger CI #52
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 job needs to handle the 'pull_request' event to get the merge commit from the PR into the main branch of WildFly | |
# in the GITHUB_SHA environment variable. This is also stored in github.event.pull_request.head.sha. | |
# To do the remote dispatch, we need a secret containing the PAT that has the permissions to do invoke workflows in the | |
# remote repository. Since 'pull_request' jobs don't have access to secrets, we delegate to the | |
# 'cloud-test-pr-workflow-run.yml' workflow to do the remote dispatch. | |
name: Cloud Tests Trigger | |
on: | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- ".mvn/**" | |
- "docs/**" | |
- ".github/workflows/build-manual.yml" | |
- ".github/workflows/shared-wildfly-build.yml" | |
- '.gitattributes' | |
- '.gitignore' | |
- '.gitleaks.toml' | |
- 'build.bat' | |
- 'build.sh' | |
- "CODE_OF_CONDUCT.md" | |
- "CONTRIBUTING.md" | |
- "integration-tests.bat" | |
- "integration-tests.sh" | |
- "LICENSE.txt" | |
- "mvnw" | |
- "mvnw.cmd" | |
- "README.md" | |
- "SECURITY.md" | |
- "**/README.md" | |
- "**/README.adoc" | |
# Only run the latest job | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.ref || github.run_id }}' | |
cancel-in-progress: true | |
permissions: {} | |
jobs: | |
trigger: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get pull request number | |
run: | | |
event_name="${{ github.event_name }}" | |
if [ "${event_name}" == "pull_request" ]; then | |
echo "This is a pull request" | |
echo "PR_NUMBER=${{ github.event.number }}" >> .job-env | |
echo "GITHUB_SHA=${{ github.sha }}" >> .job-env | |
echo "GITHUB_EVENT_PULL_REQUEST_HEAD_SHA=${{ github.event.pull_request.head.sha }}" >> .job-env | |
elif [ "${event_name}" == "push" ]; then | |
echo "This is a push" | |
echo "PR_NUMBER=push" >> .job-env | |
echo "GITHUB_SHA=${{ github.sha }}" >> .job-env | |
else | |
echo "The ${event_name} event is not handled by this workflow" | |
exit 1 | |
fi | |
cat .job-env | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: .job-env | |
path: .job-env | |
include-hidden-files: true |