-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.21 KB
/
example-workflow.yml
File metadata and controls
42 lines (40 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
on: [workflow_dispatch, push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Global Akka Resolver
uses: akka/github-actions-scripts/setup_global_resolver@main
with:
sbt-plugin-project-name: 'my-sbt-plugin'
maven-mirror-control: 'NO_MIRROR'
test-pom-organize:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create test pom fixture
run: |
mkdir -p target
cat > target/my-artifact-1.2.3.pom << 'EOF'
<project>
<description>test artifact</description>
<version>1.2.3</version>
<repositories>
<repository>
<id>test-repo</id>
<url>https://example.com</url>
</repository>
</repositories>
</project>
EOF
- name: Run pom-organize.sh on test fixtures
run: bash pom-organize.sh
- name: Commit organized poms
run: |
git config user.email "ci@github.com"
git config user.name "CI"
git add generated-poms
git commit -m "test: add organized poms"
- name: Test pom_organize action (re-run should produce no diff)
uses: ./verify_pom