Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup: dropped useless step in action.yml. #78

Merged
merged 2 commits into from
Feb 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 15 additions & 16 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,9 @@ runs:
env:
ACTION_REF: ${{ github.action_ref }}

- name: Store architecture variable
id: var
run: echo "architecture=$(uname -m)" >> $GITHUB_OUTPUT

- name: Generate vars yaml
working-directory: ./ansible-playbooks
shell: bash
run: |
cat > vars.yml <<EOF
run_id: "id-${{ github.run_id }}"
Expand All @@ -53,46 +50,48 @@ runs:

- name: Bootstrap VMs
working-directory: ./ansible-playbooks
run: |
ansible-playbook bootstrap.yml --extra-vars "@vars.yml"
shell: bash
run: ansible-playbook bootstrap.yml --extra-vars "@vars.yml"

- name: Common setup
working-directory: ./ansible-playbooks
run: |
ansible-playbook common.yml --extra-vars "@vars.yml"
shell: bash
run: ansible-playbook common.yml --extra-vars "@vars.yml"

- name: Prepare github repos
working-directory: ./ansible-playbooks
run: |
ansible-playbook git-repos.yml --extra-vars "@vars.yml"
shell: bash
run: ansible-playbook git-repos.yml --extra-vars "@vars.yml"

- name: Run scap-open tests
working-directory: ./ansible-playbooks
run: |
ansible-playbook scap-open.yml --extra-vars "@vars.yml" || :
shell: bash
run: ansible-playbook scap-open.yml --extra-vars "@vars.yml" || :

- name: Tar output files
run: |
tar -cvf ansible_output.tar ~/ansible_output_${{ github.run_id }}
shell: bash
run: tar -cvf ansible_output.tar ~/ansible_output_${{ github.run_id }}

- name: Build matrix_gen and generate matrix
if: inputs.build_matrix == 'true'
working-directory: ./matrix_gen
env:
GOPATH: /root/go
GOCACHE: /root/.cache/go-build
shell: bash
run: |
go build .
./matrix_gen --root-folder ~/ansible_output_${{ github.run_id }} --output-file matrix.md

- name: Set output
id: outputs
shell: bash
run: |
echo "ansible=${{ github.action_path }}/ansible_output.tar" >> $GITHUB_OUTPUT
echo "matrix=${{ github.action_path }}/matrix_gen/matrix.md" >> $GITHUB_OUTPUT

- name: Cleanup
if: always()
working-directory: ./ansible-playbooks
run: |
ansible-playbook clean-up.yml --extra-vars "@vars.yml" || :
shell: bash
run: ansible-playbook clean-up.yml --extra-vars "@vars.yml" || :
Loading