This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import shutil | |
import requests | |
GITLAB_URL = 'https://foo.com/api/v4/projects/210/repository/branches' | |
GITLAB_TOKEN = '123456abcdefg' # GitLab user token | |
SERVER_PATH = '/apps/foobar/ios/development' # Where are the build branches | |
def remove_folder(path): | |
# check if folder exists |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setInterval(function(){ | |
var divs = document.getElementsByTagName('div') | |
var arr = Array.prototype.slice.call( divs) | |
var hearts = arr.filter(x => x.getAttribute('data-testid') == 'like') | |
hearts.forEach(h => h.click()) | |
window.scrollTo(0, document.body.scrollHeight ||document.documentElement.scrollHeight); | |
},1000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GitHub Action Workflow | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
# Source: https://turso.tech/blog/simple-trick-to-save-environment-and-money-when-using-github-actions |
OlderNewer