Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
MDavidson17 committed Sep 19, 2023
1 parent 7c1f1e8 commit 706f33b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/test-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
on: [push]
name: Workflow Test
on:
[push]
# push:
# branches: ["master"]

jobs:
main:
name: Workflow Test
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Use Node.js 18.x
uses: actions/[email protected]
Expand Down Expand Up @@ -43,10 +48,22 @@ jobs:
chmod +x argo-linux-amd64
./argo-linux-amd64 version
- name: Submit workflow
- name: Get changed Files
id: changed-files
run: |
echo "changed_files=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | xargs)" >> $GITHUB_OUTPUT
- name: Submit workflow(s)
run: |
echo $PWD
./argo-linux-amd64 submit --from wftmpl/publish-copy -n argo -f ./argo-submits/test-params.yaml --generate-name test-mdavidson-gh-action-
for file in ${{ steps.changed-files.outputs.changed_files }}; do
if [[ "$file" == *.yaml ]];
then
if [[ "$file" == *argo-submits* ]];
then
./argo-linux-amd64 submit --from wftmpl/publish-copy -n argo -f $file --generate-name test-mdavidson-gh-action-
fi
fi
done
- name: test argo outputs
run: echo "Argo URL $WORKFLOW_URL"
Expand Down
2 changes: 1 addition & 1 deletion argo-submits/test-params.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"source": "s3://linz-imagery-staging/test/sample/"
"target": "s3://linz-workflow-artifacts/mdavidson/test-actions/"
"target": "s3://linz-workflow-artifacts/mdavidson/test-actions/test/"

0 comments on commit 706f33b

Please sign in to comment.