Skip to content

Update alpine Docker tag to v3.21 #84

Update alpine Docker tag to v3.21

Update alpine Docker tag to v3.21 #84

Workflow file for this run

name: assets-sync-ci
on:
pull_request:
branches: master
push:
branches: master
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: prepare test data
run: |
mkdir -p root/aaa
echo "Test file" > root/test.txt
echo "File in directory" > root/aaa/test.txt
- name: sync test
uses: ./
with:
repos: |
at-wat/assets-sync-action
git_user: Atsushi Watanabe
git_email: [email protected]
github_token: ${{ secrets.GITHUB_TOKEN }}
dryrun: true
- name: sync test with exclude_paths option
uses: ./
with:
exclude_paths: |
aaa/*.txt
repos: |
at-wat/assets-sync-action
git_user: Atsushi Watanabe
git_email: [email protected]
github_token: ${{ secrets.GITHUB_TOKEN }}
dryrun: true
- name: sync test with rm option
uses: ./
with:
repos: |
at-wat/assets-sync-action
rm: README.md
git_user: Atsushi Watanabe
git_email: [email protected]
github_token: ${{ secrets.GITHUB_TOKEN }}
dryrun: true
- name: sync test with rm option (non-existent target)
uses: ./
with:
repos: |
at-wat/assets-sync-action
rm: README12345.md
git_user: Atsushi Watanabe
git_email: [email protected]
github_token: ${{ secrets.GITHUB_TOKEN }}
dryrun: true
- name: sync test with branch option
uses: ./
with:
repos: |
at-wat/assets-sync-action
git_user: Atsushi Watanabe
git_email: [email protected]
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: sync-test-assets-%v
dryrun: true
- name: prepare another test data
run: |
rm -rf root
mkdir -p root2
echo "Test file 2" > root2/test.txt
- name: sync test with root_dir option
uses: ./
with:
repos: |
at-wat/assets-sync-action
root_dir: root2
git_user: Atsushi Watanabe
git_email: [email protected]
github_token: ${{ secrets.GITHUB_TOKEN }}
dryrun: true