diff --git a/.github/workflows/description.yml b/.github/workflows/description.yml new file mode 100644 index 0000000..7ecc924 --- /dev/null +++ b/.github/workflows/description.yml @@ -0,0 +1,55 @@ +name: GitHub Actions Description Updater + +on: + push: + branches: + - main + paths: + - README.md + - .github/workflows/description.yml + +jobs: + dockerHubDescription: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4.2.2 + with: + # [Required] Access token with `workflow` scope. + token: ${{ secrets.WORKFLOW_SECRET }} + - name: Docker Hub Description + uses: christian-korneck/update-container-description-action@v1 + env: + DOCKER_USER: ${{ secrets.DOCKER_HUB_USERNAME }} + DOCKER_PASS: ${{ secrets.DOCKER_HUB_TOKEN }} + with: + destination_container_repo: snowdreamtech/frpc + provider: dockerhub + short_description: ${{ github.event.repository.description }} + readme_file: "README.md" + - name: Docker Hub Description + uses: christian-korneck/update-container-description-action@v1 + env: + DOCKER_USER: ${{ secrets.DOCKER_HUB_USERNAME }} + DOCKER_PASS: ${{ secrets.DOCKER_HUB_TOKEN }} + with: + destination_container_repo: snowdreamtech/frps + provider: dockerhub + short_description: ${{ github.event.repository.description }} + readme_file: "README.md" + - name: Quay.io Description + uses: christian-korneck/update-container-description-action@v1 + env: + DOCKER_APIKEY: ${{ secrets.QUAY_API_TOKEN }} + with: + destination_container_repo: quay.io/snowdreamtech/frpc + provider: quay + readme_file: "README.md" + - name: Quay.io Description + uses: christian-korneck/update-container-description-action@v1 + env: + DOCKER_APIKEY: ${{ secrets.QUAY_API_TOKEN }} + with: + destination_container_repo: quay.io/snowdreamtech/frps + provider: quay + readme_file: "README.md" \ No newline at end of file diff --git a/.github/workflows/dockerhub-description.yml b/.github/workflows/dockerhub-description.yml deleted file mode 100644 index 273a4da..0000000 --- a/.github/workflows/dockerhub-description.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Update Docker Hub Description (Frp) -on: - push: - branches: - - main - paths: - - README.md - - .github/workflows/dockerhub-description.yml - -jobs: - dockerHubDescription: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4.2.2 - with: - # [Required] Access token with `workflow` scope. - token: ${{ secrets.WORKFLOW_SECRET }} - - name: Docker Hub Description For Frps - uses: peter-evans/dockerhub-description@v4.0.0 - with: - username: ${{ secrets.DOCKER_HUB_USERNAME }} - password: ${{ secrets.DOCKER_HUB_TOKEN }} - repository: snowdreamtech/frps - readme-filepath: ./README.md - short-description: ${{ github.event.repository.description }} - enable-url-completion: true - - name: Docker Hub Description For Frpc - uses: peter-evans/dockerhub-description@v4.0.0 - with: - username: ${{ secrets.DOCKER_HUB_USERNAME }} - password: ${{ secrets.DOCKER_HUB_TOKEN }} - repository: snowdreamtech/frpc - readme-filepath: ./README.md - short-description: ${{ github.event.repository.description }} - enable-url-completion: true